mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue