diff options
author | jilles <jilles@FreeBSD.org> | 2009-06-07 15:04:43 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2009-06-07 15:04:43 +0000 |
commit | e3bbdad1086e84d8c6d1b301d9054e28f82cd8d6 (patch) | |
tree | f44c68064928377df45f3e38c905287f800a84fb /bin | |
parent | 10233cbb4a6ce8f44b357704b941ad8d4c7150df (diff) | |
download | FreeBSD-src-e3bbdad1086e84d8c6d1b301d9054e28f82cd8d6.zip FreeBSD-src-e3bbdad1086e84d8c6d1b301d9054e28f82cd8d6.tar.gz |
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)
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 cc8874e..d3ae24f 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 |