1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-18 05:12:15 +02:00
Files
coreutils/tests/input-tty

11 lines
378 B
Plaintext
Raw Normal View History

2002-07-19 20:26:28 +00:00
# Require a controlling input `terminal'.
2001-03-09 18:21:29 +00:00
tty -s || have_input_tty=no
test -t 1 || have_input_tty=no
2001-03-09 18:21:29 +00:00
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 77
2001-03-09 18:21:29 +00:00
fi