summaryrefslogtreecommitdiffstats
path: root/bin/sh/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sh/eval.c')
-rw-r--r--bin/sh/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/eval.c b/bin/sh/eval.c
index a91f9db..ada2a78 100644
--- a/bin/sh/eval.c
+++ b/bin/sh/eval.c
@@ -196,7 +196,7 @@ evaltree(union node *n, int flags)
TRACE(("evaltree(%p: %d) called\n", (void *)n, n->type));
switch (n->type) {
case NSEMI:
- evaltree(n->nbinary.ch1, 0);
+ evaltree(n->nbinary.ch1, flags & ~EV_EXIT);
if (evalskip)
goto out;
evaltree(n->nbinary.ch2, flags);
OpenPOWER on IntegriCloud