TTY(1) DOMAIN/IX SYS5 TTY(1)
NAME
tty - get the name of the terminal
USAGE
tty [ -l ] [ -s ]
DESCRIPTION
Tty prints the pathname of your terminal.
OPTIONS
-l Print the synchronous line number connecting your
terminal, provided it is an active synchronous
line.
-s Inhibit printing of the terminal pathname, allow-
ing testing of the exit code only.
EXIT CODES
2 if invalid options were specified
0 if standard input is a terminal
1 otherwise
DIAGNOSTICS
``not on an active synchronous line'': standard input is
not a synchronous terminal and -l is specified.
``not a tty'': standard input is not a terminal and -s is
not specified.
Printed 12/4/86 TTY-1