summary refs log tree commit diff
path: root/src/init.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2018-12-14 13:52:02 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2019-02-25 12:52:11 +0800
commit62cf6955f8abe875752d7163f6f3adbc7e49ebae (patch)
tree9e00ec01755501a903f7623b1f1ffd09646298dc /src/init.h
parenteval: avoid leaking memory associated with redirections (diff)
downloaddash-62cf6955f8abe875752d7163f6f3adbc7e49ebae.tar.gz
dash-62cf6955f8abe875752d7163f6f3adbc7e49ebae.zip
eval: Only restore exit status on exit/return
We unconditionally restore the saved status in exitreset, which
is incorrect as we only want to do it for exitcmd and returncmd.
This patch fixes the problem by introducing EXEND.

Reported-by: Martijn Dekker <martijn@inlv.org>
Fixes: da30b4b78769 ("[BUILTIN] Exit without arguments in a trap...")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'src/init.h')
0 files changed, 0 insertions, 0 deletions
sing target pixel counts for consistencyJune McEnroe 2024-06-10Add The Girl Who Was Convinced...June McEnroe 2024-06-09Add photos from May 31June McEnroe 2024-06-09Use monospace on photo pagesJune McEnroe 2024-06-09Put lens and (future) film at the tops of photo pagesJune McEnroe 2024-05-22Remove use of sysexits.hJune McEnroe 2024-05-22Add photo descriptions from 05-03 and 05-06June McEnroe 2024-05-21Fix = precedence in whenJune McEnroe