diff options
| author | Martin Cracauer <cracauer@FreeBSD.org> | 2004-01-28 18:22:19 +0000 |
|---|---|---|
| committer | Martin Cracauer <cracauer@FreeBSD.org> | 2004-01-28 18:22:19 +0000 |
| commit | 6c6fd020de8618c0f1f0ce9dfa3dec44e371238d (patch) | |
| tree | f8580a11118d4576322d73b996f4986c71681a81 /bin | |
| parent | 5c4d4bfad40c46c59568b18c9111fd9c74a236ab (diff) | |
Notes
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/sh/eval.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/sh/eval.c b/bin/sh/eval.c index 38282d42c605..b8c05896f970 100644 --- a/bin/sh/eval.c +++ b/bin/sh/eval.c @@ -273,7 +273,8 @@ out: if (pendingsigs) dotrap(); if ((flags & EV_EXIT) || (eflag && exitstatus - && !(flags & EV_TESTED) && (n->type == NCMD))) + && !(flags & EV_TESTED) && (n->type == NCMD || + n->type == NSUBSHELL))) exitshell(exitstatus); } |
