[MAN] Clarify "trap '' signals" syntax in manual page

When the manpage states

| <action> may be null, which cause the specified signals to be ignored.

it is not immediately obvious what it means for an action to be
null.  Clarify by explicitly referring to an empty string, as
opposed to a NULL pointer or the string "null".

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Jonathan Nieder 2014-09-26 22:21:16 +08:00 committed by Herbert Xu
parent 66e922a2ef
commit 580a7aed74
2 changed files with 7 additions and 1 deletions

View File

@ -4,6 +4,10 @@
* Set command -p path to /usr/sbin:/usr/bin:/sbin:/bin.
* Change "characters" for printf precision to "bytes".
2014-09-26 Jonathan Nieder <jrnieder@gmail.com>
* Clarify "trap '' signals" syntax in manual page.
2014-09-26 Adam Buchbinder <adam.buchbinder@gmail.com>
* Clarify that 0 and EXIT are both acceptable for exit traps.

View File

@ -2076,7 +2076,9 @@ or
.Li EXIT ,
the action is executed when the shell exits.
.Ar action
may be null, which cause the specified signals to be ignored.
may be empty
.Li ( "''" ) ,
which causes the specified signals to be ignored.
With
.Ar action
omitted or set to `-' the specified signals are set to their default action.