aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/isatty.txt
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-09-20 02:53:17 +1000
committerGravatar axel <axel@liljencrantz.se>2006-09-20 02:53:17 +1000
commitbe886bc6df8fd4564854294e0921e59b8d3d3bc0 (patch)
tree9050a0df8d0ba2876ac184e5369f7da007948263 /doc_src/isatty.txt
parent7a5823fd605af80df483e1d3f3629e60503488de (diff)
Unly use classifications in ls if stdout is a tty
darcs-hash:20060919165317-ac50b-c7923c7f5900ecc9814756743e6b0345efa382c5.gz
Diffstat (limited to 'doc_src/isatty.txt')
-rw-r--r--doc_src/isatty.txt12
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.
+
+