summary refs log tree commit diff
path: root/src/funcs/popd
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2010-05-27 15:03:46 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2010-05-27 15:03:46 +0800
commitb112dc08c6c86b8b82d60b1169ccab51921241ca (patch)
tree04bb75f4f823114f566d68ec52745421268baa99 /src/funcs/popd
parent[REDIR] Move null redirect checks into caller (diff)
downloaddash-b112dc08c6c86b8b82d60b1169ccab51921241ca.tar.gz
dash-b112dc08c6c86b8b82d60b1169ccab51921241ca.zip
[REDIR] Fix popredir on abnormal exit from built-in
Just like the poplocalvar problem recently fixed, redirections
can also be leaked in case of an abnormal exit.  This patch fixes
it using the same method as poplocalvar, by storing the previous
redirection state and restoring to that point.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'src/funcs/popd')
0 files changed, 0 insertions, 0 deletions
le='2019-09-05 01:49:01 -0400'>2019-09-05Add titleJune McEnroe 2019-09-04Add Avorter n'est pas tuerJune McEnroe 2019-08-29Unset executable on shell scriptsJune McEnroe 2019-08-29Add long-missing setopt to bin.7June McEnroe 2019-08-29Add editJune McEnroe