diff options
author | Jilles Tjoelker <jilles@FreeBSD.org> | 2009-06-07 15:04:43 +0000 |
---|---|---|
committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2009-06-07 15:04:43 +0000 |
commit | a68fbc44ee3cefd6c15abe9d3a343b4e96580aa3 (patch) | |
tree | f44c68064928377df45f3e38c905287f800a84fb /bin | |
parent | e530f4b50df9c8d68d1a8f53d4c3e141e2146813 (diff) | |
download | src-a68fbc44ee3cefd6c15abe9d3a343b4e96580aa3.tar.gz src-a68fbc44ee3cefd6c15abe9d3a343b4e96580aa3.zip |
Mention the range for the exit status for the exit special builtin.
The exit status may exceed 255 in some cases (return); even though it seems
unwise to rely on this, it is also unwise to assume that $? is always
between 0 and 255.
This resolves bin/124748 by documenting that 'exit -1' is not valid.
PR: bin/124748
Approved by: ed (mentor)
Notes
Notes:
svn path=/head/; revision=193636
Diffstat (limited to 'bin')
-rw-r--r-- | bin/sh/sh.1 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1 index cc8874e4e40f..d3ae24fe8d93 100644 --- a/bin/sh/sh.1 +++ b/bin/sh/sh.1 @@ -1682,6 +1682,7 @@ If is given it is used as the exit status of the shell; otherwise the exit status of the preceding command is used. +The exit status should be an integer between 0 and 255. .It Ic export Ar name ... .It Ic export Op Fl p The specified names are exported so that they will |