Tizen 2.0 Release
[external/tizen-coreutils.git] / tests / input-tty
1 # Require a controlling input `terminal'.
2
3 tty -s || have_input_tty=no
4 test -t 1 || have_input_tty=no
5 if test "$have_input_tty" = no; then
6   echo "$0: This test must have a controlling input \`terminal'," 1>&2
7   echo "  so it may not be run via \`batch', \`at', or \`rsh'." 1>&2
8   echo "  On some systems, it may not even be run in the background." 1>&2
9   (exit 77); exit 77
10 fi