sh(1): Document changes to 'exit' from traps.
This commit is contained in:
parent
ebdfd6dc4d
commit
421fb02139
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217473
@ -32,7 +32,7 @@
|
|||||||
.\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95
|
.\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd December 21, 2010
|
.Dd January 16, 2011
|
||||||
.Dt SH 1
|
.Dt SH 1
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -1848,7 +1848,12 @@ If
|
|||||||
.Ar exitstatus
|
.Ar exitstatus
|
||||||
is given
|
is given
|
||||||
it is used as the exit status of the shell;
|
it is used as the exit status of the shell;
|
||||||
otherwise the exit status of the preceding command is used.
|
otherwise, if the shell is executing an
|
||||||
|
.Cm EXIT
|
||||||
|
trap, the exit status of the last command before the trap is used;
|
||||||
|
if the shell is executing a trap for a signal,
|
||||||
|
the shell exits by resending the signal to itself;
|
||||||
|
otherwise, the exit status of the preceding command is used.
|
||||||
The exit status should be an integer between 0 and 255.
|
The exit status should be an integer between 0 and 255.
|
||||||
.It Ic export Ar name ...
|
.It Ic export Ar name ...
|
||||||
.It Ic export Op Fl p
|
.It Ic export Op Fl p
|
||||||
|
Loading…
Reference in New Issue
Block a user