blob: bccf8ab86dc83697077a9f31d94a8adae0f6fdb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
\section isatty isatty - test if the specified file descriptor is a tty
\subsection isatty-synopsis Synopsis
<tt>isatty [FILE DESCRIPTOR]</tt>
\subsection isatty-description Description
The <tt>isatty</tt> command is used to test if a file descriptor is a tty.
FILE DESCRIPTOR may be either the number of a file descriptor, or one of the
strings stdin, stdout and stderr.
If the specified file descriptor is a tty, the exit status of the command is
zero, otherwise, it is non-zero.
|