diff options
author | Eric Blake <ebb9@byu.net> | 2009-10-23 06:59:23 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-10-23 16:24:08 -0600 |
commit | 1ce9e1e5ca1e7491bccedeeced15470d856c9a22 (patch) | |
tree | b1ff911072e189b2e0b3b84f605353e68fae27ac /doc | |
parent | b6540b96ba6510af7b2acc6e81bd9d9583f7c96b (diff) | |
download | coreutils-1ce9e1e5ca1e7491bccedeeced15470d856c9a22.tar.xz |
nohup: use EXIT_CANCELED if not POSIXLY_CORRECT
* src/nohup.c (NOHUP_FAILURE): Rename...
(POSIX_NOHUP_FAILURE): ...to this.
(main): Pay attention to POSIXLY_CORRECT, to determine whether to
use status 125 or 127.
* doc/coreutils.texi (nohup invocation): Document this.
* NEWS: Likewise.
* tests/misc/invalid-opt (exit_status): Adjust expected results.
* tests/misc/help-version (expected_failure_status): Likewise.
* tests/misc/nohup: Likewise.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/coreutils.texi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 31c3d5c1b..c54ffb88f 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -14634,11 +14634,15 @@ options}. Options must precede operands. Exit status: @display +125 if @command{nohup} itself fails, and @env{POSIXLY_CORRECT} is not set 126 if @var{command} is found but cannot be invoked -127 if @command{nohup} itself fails or if @var{command} cannot be found +127 if @var{command} cannot be found the exit status of @var{command} otherwise @end display +If @env{POSIXLY_CORRECT} is set, internal failures give status 127 +instead of 125. + @node stdbuf invocation @section @command{stdbuf}: Run a command with modified I/O stream buffering |