diff options
author | Gerrit Pape <pape@smarden.org> | 2010-07-06 17:50:37 +0800 |
---|---|---|
committer | maximilian attems <max@stro.at> | 2011-06-03 18:44:12 +0200 |
commit | 3a8c5a94d5bcd54e7421b2e9669b66a2d05df442 (patch) | |
tree | 7f4afa58d2551be2154456173f7fe46e64b03f5b | |
parent | 052f7538f84e88ad28683d71d1f7d8caefa80634 (diff) | |
download | klibc-3a8c5a94d5bcd54e7421b2e9669b66a2d05df442.tar.gz |
[klibc] [EVAL] Check exit for eval NSUBSHELL
Example:
$ dash -c 'set -e; (false); echo here'
here
With this commit, dash exits 1 before echo.
The bug was reported by Stefan Fritsch through
http://bugs.debian.org/514863
Signed-off-by: Gerrit Pape <pape@smarden.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r-- | usr/dash/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/dash/eval.c b/usr/dash/eval.c index 7a5b7c69090ea..6947ba26bf13c 100644 --- a/usr/dash/eval.c +++ b/usr/dash/eval.c @@ -251,7 +251,7 @@ checkexit: case NSUBSHELL: case NBACKGND: evalfn = evalsubshell; - goto calleval; + goto checkexit; case NPIPE: evalfn = evalpipe; goto checkexit; |