From bb2bbcc944e5b2a089f27e9b988e1740a517cedd Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 30 Sep 2016 11:34:15 +0100 Subject: 39517: back off 39502 (WC_ASSIGN causes fork in pipe). This isn't a robust fix as WC_ASSIGNs simply precede the main wordcode. --- Src/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/exec.c') diff --git a/Src/exec.c b/Src/exec.c index e253d7b9e..2714edbcb 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -1844,7 +1844,7 @@ execpline2(Estate state, wordcode pcode, /* if we are doing "foo | bar" where foo is a current * * shell command, do foo in a subshell and do the * * rest of the pipeline in the current shell. */ - if ((wc_code(code) >= WC_CURSH || wc_code(code) == WC_ASSIGN) + if ((wc_code(code) >= WC_CURSH) && (how & Z_SYNC)) { int synch[2]; struct timeval bgtime; -- cgit 1.4.1