Commit 6c7bfd51 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix inputistty (implement via test -t)

parent ab1f2ba5
...@@ -23,7 +23,8 @@ ...@@ -23,7 +23,8 @@
inputisatty() inputisatty()
{ {
# check stdin # check stdin
tty -s 2>/dev/null #tty -s 2>/dev/null
test -t 0
} }
isatty() isatty()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment