summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2014-10-06 21:51:26 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2014-10-06 21:51:26 +0800
commit70c16dd30d4cf824aa895e9f6c095fec741c65a8 (patch)
tree6b0057c3ab08a4eafbf477d6e6ea412e9b807ee0 /ChangeLog
parent[BUILTIN] Allow return in loop conditional to set exit status (diff)
downloaddash-70c16dd30d4cf824aa895e9f6c095fec741c65a8.tar.gz
dash-70c16dd30d4cf824aa895e9f6c095fec741c65a8.zip
[BUILTIN] Return without arguments in a trap should use status outside traps
POSIX now requires that return without arguments in a trap should
return the last command status prior to executing traps.  This
patch implements this behaviour.

Incidentally this also changes the behaviour of return without
arguments in a loop conditional to use the last exit status in
the body as opposed to the last command in the conditional when
there is one.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog1
1 files changed, 1 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 297b81a..aa230ab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
 	* Do not allow break to break across function calls.
 	* Move common skipcount logic into skiploop.
 	* Allow return in loop conditional to set exit status.
+	* Return without arguments in a trap should use status outside traps.
 
 2014-10-03  Herbert Xu <herbert@gondor.apana.org.au>