From 16ea1f357d02481efa55d5304ab8f452e37ca6b4 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 13 Mar 2000 09:57:05 +0000 Subject: zsh-workers/10106 --- Src/exec.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Src/exec.c') 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; } -- cgit 1.4.1