mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-10 09:42:26 +00:00
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)
This commit is contained in:
parent
e530f4b50d
commit
a68fbc44ee
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193636
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user