diff options
Diffstat (limited to 'Src/exec.c')
-rw-r--r-- | Src/exec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Src/exec.c b/Src/exec.c index 4765e41b2..d6715a328 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -315,12 +315,16 @@ static char list_pipe_text[JOBTEXTSIZE]; static int execcursh(Estate state, int do_exec) { + Wordcode end = state->pc + WC_CURSH_SKIP(state->pc[-1]); + if (!list_pipe && thisjob != list_pipe_job) deletejob(jobtab + thisjob); cmdpush(CS_CURSH); execlist(state, 1, do_exec); cmdpop(); + state->pc = end; + return lastval; } |