[MAN] 0 and EXIT both work for exit traps I saw a discussion in which there was some confusion over whether or not you can use a symbolic name, since the manpage doesn't specifically say so. Signed-off-by: Adam Buchbinder <adam.buchbinder@gmail.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
diff --git a/ChangeLog b/ChangeLog index 6f27fd7..501084c 100644 --- a/ChangeLog +++ b/ChangeLog
@@ -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 Adam Buchbinder <adam.buchbinder@gmail.com> + + * Clarify that 0 and EXIT are both acceptable for exit traps. + 2014-09-26 Harald van Dijk <harald@gigawatt.nl> * command: allow combining -p with -v.
diff --git a/src/dash.1 b/src/dash.1 index 6ceb16a..577e9ee 100644 --- a/src/dash.1 +++ b/src/dash.1
@@ -2071,7 +2071,9 @@ If .Ar signal is -.Li 0 , +.Li 0 +or +.Li EXIT , the action is executed when the shell exits. .Ar action may be null, which cause the specified signals to be ignored.