386BSD 0.1 development
[unix-history] / usr / othersrc / public / shellutils-1.6 / man / cat1 / tty.0
TTY(1L) TTY(1L)
N\bNA\bAM\bME\bE
tty - print the path of the terminal connected to standard
input
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
t\btt\bty\by [-s] [--silent] [--quiet]
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
This manual page documents the GNU version of t\btt\bty\by. t\btt\bty\by
prints the path name of the tty connected to its standard
input. It prints `not a tty' if the standard input is not
a tty. Its exit status is:
0 if the standard input is a tty
1 if the standard input is not a tty
2 if given incorrect arguments
O\bOP\bPT\bTI\bIO\bON\bNS\bS
-_\bs, --_\bs_\bi_\bl_\be_\bn_\bt, --_\bq_\bu_\bi_\be_\bt
Print nothing; only return an exit status.
The long-named options can be introduced with `+' as well
as `--', for compatibility with previous releases. Even-
tually support for `+' will be removed, because it is
incompatible with the POSIX.2 standard.
1