1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-13 21:49:04 +02:00

source input-tty instead of open-coding it

This commit is contained in:
Jim Meyering
1999-08-17 10:15:50 +00:00
parent e95aecb85e
commit 13955cb7c1
2 changed files with 4 additions and 12 deletions
+2 -6
View File
@@ -6,12 +6,8 @@ if test "$VERBOSE" = yes; then
stty --version
fi
tty -s || 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 rsh" 1>&2
exit 77
fi
# Make sure there's a tty on stdin.
. $srcdir/input-tty
# The following list of reversible options was generated with
# grep -w REV stty.c|sed -n '/^ {"/{s//REV_/;s/".*/=1/;p;}'|fmt
+2 -6
View File
@@ -6,12 +6,8 @@ if test "$VERBOSE" = yes; then
stty --version
fi
tty -s || 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 rsh" 1>&2
exit 77
fi
# Make sure there's a tty on stdin.
. $srcdir/input-tty
# Versions of GNU stty from shellutils-1.9.2c and earlier failed
# tests #2 and #4 when run on SunOS 4.1.3.