summaryrefslogtreecommitdiff
path: root/tests/input-tty
blob: 7b2f426f85e7bd5187b568bf5b1312e411b3cd60 (plain)
1
2
3
4
5
6
7
8
# This test is used from at least two separate scripts.

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 \`batch', \`at', or \`rsh'." 1>&2
  (exit 77; exit); exit
fi