diff options
Diffstat (limited to 'doc_src/isatty.txt')
-rw-r--r-- | doc_src/isatty.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc_src/isatty.txt b/doc_src/isatty.txt new file mode 100644 index 00000000..5654c5a2 --- /dev/null +++ b/doc_src/isatty.txt @@ -0,0 +1,12 @@ +\section isatty isatty - Test if the specidied file descriptor is a tty + +\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. + +If he specified file descriptor is a tty, the exit status of the +command is zero, otherwise, it is non-zero. + + |