about summary refs log tree commit diff
path: root/Test/A01grammar.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2016-10-03 09:59:01 +0100
committerPeter Stephenson <pws@zsh.org>2016-10-03 09:59:01 +0100
commit36a11804b467d7553f8fdaed9320869d8d984f77 (patch)
treeee9938331b37c970b3e3a040b4fed34575aec417 /Test/A01grammar.ztst
parent6b2585147b842c69faecb136c17dbdda79b3e4b4 (diff)
downloadzsh-36a11804b467d7553f8fdaed9320869d8d984f77.tar.gz
zsh-36a11804b467d7553f8fdaed9320869d8d984f77.tar.xz
zsh-36a11804b467d7553f8fdaed9320869d8d984f77.zip
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.
Diffstat (limited to 'Test/A01grammar.ztst')
-rw-r--r--Test/A01grammar.ztst15
1 files changed, 6 insertions, 9 deletions
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