From 36a11804b467d7553f8fdaed9320869d8d984f77 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 3 Oct 2016 09:59:01 +0100 Subject: 39521: Refactor start of execcmd(). By splitting into _analyse and _exec execpline2() has easier access to the state at the start of execution. Use this to ensure we fork if this is a builtin with no arguments. --- Test/A01grammar.ztst | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'Test/A01grammar.ztst') diff --git a/Test/A01grammar.ztst b/Test/A01grammar.ztst index 1ad73c599..0b1085c3e 100644 --- a/Test/A01grammar.ztst +++ b/Test/A01grammar.ztst @@ -757,12 +757,9 @@ >} >Stuff here -## This problem is hard to fix without significant changes to how -## the shell forks for a pipeline. -# -# x=1 -# x=2 | echo $x -# echo $x -# 0:Assignment-only current shell commands in LHS of pipelin -# >1 -# >1 + x=1 + x=2 | echo $x + echo $x +0:Assignment-only current shell commands in LHS of pipelin +>1 +>1 -- cgit 1.4.1