diff options
Diffstat (limited to 'doc_src/isatty.txt')
-rw-r--r-- | doc_src/isatty.txt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/doc_src/isatty.txt b/doc_src/isatty.txt index f72e9e12..bccf8ab8 100644 --- a/doc_src/isatty.txt +++ b/doc_src/isatty.txt @@ -3,10 +3,13 @@ \subsection isatty-synopsis Synopsis <tt>isatty [FILE DESCRIPTOR]</tt> -where FILE DESCRIPTOR may be either the number of a file descriptor, or one -of the strings stdin, stdout and stderr. +\subsection isatty-description Description +The <tt>isatty</tt> command is used to test if a file descriptor is a tty. -If the specified file descriptor is a tty, the exit status of the -command is zero, otherwise, it is non-zero. +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. |