summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-03-02 18:04:03 +0000
committerJim Meyering <jim@meyering.net>2003-03-02 18:04:03 +0000
commit345481344c5f748c95782c6160be65c94aacbba7 (patch)
tree2d2ddd6b099b38164660d8cbdecd43c47479ecd3 /doc
parent123cec6105f96c8354857ea4ce0583f724be79d8 (diff)
downloadcoreutils-345481344c5f748c95782c6160be65c94aacbba7.tar.xz
(Exit status): New section.
Diffstat (limited to 'doc')
-rw-r--r--doc/coreutils.texi18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 2e99d0c56..336150ff5 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -196,6 +196,7 @@ Free Documentation License''.
Common Options
+* Exit status:: Indicating program success or failure.
* Backup options:: Backup options
* Block size:: Block size
* Target directory:: Target directory
@@ -542,6 +543,7 @@ output and reads from standard input, and is equivalent to plain
context that requires a file name.
@menu
+* Exit status:: Indicating program success or failure.
* Backup options:: -b -S -V, in some programs.
* Block size:: BLOCK_SIZE and --block-size, in some programs.
* Target directory:: --target-directory, in some programs.
@@ -550,6 +552,22 @@ context that requires a file name.
@end menu
+@node Exit status
+@section Exit status
+
+Nearly every command invocation yields an integral @dfn{exit status}
+that can be used to change how other commands work.
+For the vast majority of commands, an exit status of zero indicates
+success, and a value of @samp{1} indicates failure.
+However, some of the programs documented here do produce
+different exit status values and a few associate different
+meanings with the values @samp{0} and @samp{1}.
+Here are some of the exceptions:
+@command{expr}, @command{false}, @command{nohup}, @command{printenv},
+@command{sort}, @command{test}, @command{true}, @command{tty},
+@command{uniq}.
+
+
@node Backup options
@section Backup options