diff options
author | Jim Meyering <jim@meyering.net> | 2003-03-02 18:04:03 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-03-02 18:04:03 +0000 |
commit | 345481344c5f748c95782c6160be65c94aacbba7 (patch) | |
tree | 2d2ddd6b099b38164660d8cbdecd43c47479ecd3 | |
parent | 123cec6105f96c8354857ea4ce0583f724be79d8 (diff) | |
download | coreutils-345481344c5f748c95782c6160be65c94aacbba7.tar.xz |
(Exit status): New section.
-rw-r--r-- | doc/coreutils.texi | 18 |
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 |