From 015120a287c3c4d4d299d586c3c49fbdbe4c334b Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 14 May 2001 08:51:59 +0000 Subject: set list_pipe_job only for real pipelines (14327) --- Src/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src') 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); -- cgit 1.4.1