summary refs log tree commit diff
path: root/src/funcs/kill
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 /src/funcs/kill
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 '')
0 files changed, 0 insertions, 0 deletions
l.agency/Makefile?id=0bdd3c751331ab0c3e5f54a9ba8df1593b2c7df8&follow=1'>Install up CGI with mode 700June McEnroe It should never be served as a regular file. 2020-07-14Check that there is upload dataJune McEnroe 2020-07-14Add CGI upload program for temp.causal.agencyJune McEnroe 2020-07-10Add The Broken KingdomsJune McEnroe 2020-07-08Add facebook and twitter to title user-agentJune McEnroe This fixes fetching tweets again! https://github.com/thelounge/thelounge/pull/ 3602 (Intentionally breaking the link so GitHub doesn't add a "referenced this PR" thing?) 2020-06-30Tweak causal.agency for mostly no reasonJune McEnroe 2020-06-30Add Ancillary JusticeJune McEnroe 2020-06-26Add password non-manager to planJune McEnroe I've had this idea for years... 2020-06-26Tweak TF2 sensitivities once moreJune McEnroe 2020-06-19Add note about litterbox bot useJune McEnroe 2020-06-19Publish "IRC suite"June McEnroe 2020-06-17Add errors to link.shJune McEnroe