mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-21 03:12:48 +02:00
doc: be more consistent when documenting exit status
* src/system.h (emit_exec_status): A new function to output standard "Exit status:" info for commands that exec others. * doc/coreutils.texi (Exit status): Add "ls" and "runcon" to the list of commands with non standard exit status. * src/numfmt.c (main): Call initialize_exit_failure() explicitly to better indicate this utility may exit with something other than EXIT_FAILURE. * src/timeout.c (usage): Use more consistent capitalization. * src/chroot.c: Call emit_exec_status(). * src/env.c: Likewise. * src/nice.c: Likewise. * src/nohup.c: Likewise. * src/runcon.c: Likewise. * src/stdbuf.c: Likewise.
This commit is contained in:
@@ -827,10 +827,14 @@ requires only that it be nonzero.
|
||||
However, some of the programs documented here do produce
|
||||
other exit status values and a few associate different
|
||||
meanings with the values @samp{0} and @samp{1}.
|
||||
Here are some of the exceptions:
|
||||
@command{chroot}, @command{env}, @command{expr}, @command{nice},
|
||||
@command{nohup}, @command{numfmt}, @command{printenv}, @command{sort},
|
||||
@command{stdbuf}, @command{test}, @command{timeout}, @command{tty}.
|
||||
Here are the exceptions:
|
||||
@c You can generate the following list with:
|
||||
@c grep initialize_exit_failure src/*.c | cut -f1 -d: |
|
||||
@c sed -n 's|src/\(.*\)\.c|@command{\1},|p' | sort | fmt
|
||||
@command{chroot}, @command{env}, @command{expr}, @command{ls},
|
||||
@command{nice}, @command{nohup}, @command{numfmt}, @command{printenv},
|
||||
@command{runcon}, @command{sort}, @command{stdbuf}, @command{test},
|
||||
@command{timeout}, @command{tty}.
|
||||
|
||||
|
||||
@node Backup options
|
||||
|
||||
Reference in New Issue
Block a user