]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Also check `test -t 1'.
authorJim Meyering <jim@meyering.net>
Sat, 12 Jul 2003 07:33:35 +0000 (07:33 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 12 Jul 2003 07:33:35 +0000 (07:33 +0000)
This is necessary on linux-2.4.21, otherwise, the test
stty/basic-1 would hang when run in the background.

tests/input-tty

index bba9eb7949e49c75b98afe587ba00f599195ce0e..95a3c37ca54bcf3d7f29ec825c92f901ea880bb2 100644 (file)
@@ -1,8 +1,10 @@
 # Require a controlling input `terminal'.
 
 tty -s || have_input_tty=no
+test -t 1 || have_input_tty=no
 if test "$have_input_tty" = no; then
   echo "$0: This test must have a controlling input \`terminal'," 1>&2
   echo "  so it may not be run via \`batch', \`at', or \`rsh'." 1>&2
+  echo "  On some systems, it may not even be run in the background." 1>&2
   (exit 77; exit); exit
 fi