mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-21 00:01:26 +01:00
A couple more minor tweaks to the "trap" section.
This commit is contained in:
parent
b97ff864af
commit
e7ff1931ea
1 changed files with 4 additions and 2 deletions
|
@ -1157,12 +1157,14 @@ cindex(trapping signals)
|
||||||
item(tt(trap) [ var(arg) ] [ var(sig) ... ])(
|
item(tt(trap) [ var(arg) ] [ var(sig) ... ])(
|
||||||
var(arg) is a series of commands (usually quoted to protect it from
|
var(arg) is a series of commands (usually quoted to protect it from
|
||||||
immediate evaluation by the shell) to be read and executed when the shell
|
immediate evaluation by the shell) to be read and executed when the shell
|
||||||
receives any of the signals var(sig).
|
receives any of the signals specified by one or more var(sig) args.
|
||||||
Each var(sig) can be given as a number,
|
Each var(sig) can be given as a number,
|
||||||
or as the name of a signal either with or without the string tt(SIG)
|
or as the name of a signal either with or without the string tt(SIG)
|
||||||
in front.
|
in front (e.g. 1, HUP, and SIGHUP are all the same signal).
|
||||||
|
|
||||||
If var(arg) is `tt(-)', then the specified signals are reset to their
|
If var(arg) is `tt(-)', then the specified signals are reset to their
|
||||||
defaults, or, if no var(sig) args are present, all traps are reset.
|
defaults, or, if no var(sig) args are present, all traps are reset.
|
||||||
|
|
||||||
If var(arg) is an empty string, then the specified signals
|
If var(arg) is an empty string, then the specified signals
|
||||||
are ignored by the shell (and by the commands it invokes).
|
are ignored by the shell (and by the commands it invokes).
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue