diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-05-14 08:51:59 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-05-14 08:51:59 +0000 |
commit | 015120a287c3c4d4d299d586c3c49fbdbe4c334b (patch) | |
tree | 3fc0c75ad9928c37bbb0af751ac538375b81c7eb /Src | |
parent | 7f7e58935b965845c2413a8b948865643d32d7e5 (diff) | |
download | zsh-015120a287c3c4d4d299d586c3c49fbdbe4c334b.tar.gz zsh-015120a287c3c4d4d299d586c3c49fbdbe4c334b.tar.xz zsh-015120a287c3c4d4d299d586c3c49fbdbe4c334b.zip |
set list_pipe_job only for real pipelines (14327)
Diffstat (limited to 'Src')
-rw-r--r-- | Src/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c index 073bea456..859813ef6 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -973,10 +973,10 @@ execpline(Estate state, wordcode slcode, int how, int last1) * stopped, the top-level execpline() didn't get the pid for the * sub-shell because it was overwritten. */ if (!pline_level++) { - list_pipe_job = newjob; list_pipe_pid = 0; nowait = 0; simple_pline = (WC_PIPE_TYPE(code) == WC_PIPE_END); + list_pipe_job = (simple_pline ? 0 : newjob); } lastwj = lpforked = 0; execpline2(state, code, how, opipe[0], ipipe[1], last1); |