1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 04:30:24 +02:00

20888: allow signal names to have the SIG prefix included

This commit is contained in:
Peter Stephenson 2005-02-28 14:29:09 +00:00
parent ae6c23ae2c
commit af1c6ecdc7
3 changed files with 16 additions and 3 deletions

View file

@ -1157,8 +1157,9 @@ cindex(trapping signals)
item(tt(trap) [ var(arg) [ var(sig) ... ] ])(
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
receives var(sig). Each var(sig) can be given as a number
or as the name of a signal.
receives var(sig). Each var(sig) can be given as a number,
or as the name of a signal either with or without the string tt(SIG)
in front.
If var(arg) is `tt(-)', then all traps var(sig) are reset to their
default values. If var(arg) is the empty string, then this signal
is ignored by the shell and by the commands it invokes.