about summary refs log tree commit diff
path: root/Test/A01grammar.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2016-09-29 17:29:58 +0100
committerPeter Stephenson <pws@zsh.org>2016-09-29 17:29:58 +0100
commit6ce696f35236dc4c1b6249c6f1e7f64cc95a6046 (patch)
tree32d563a9982cf4ffbd658d1156199b4084293858 /Test/A01grammar.ztst
parent99f74d6c0ac76910e45435dc69a3441415721a01 (diff)
downloadzsh-6ce696f35236dc4c1b6249c6f1e7f64cc95a6046.tar.gz
zsh-6ce696f35236dc4c1b6249c6f1e7f64cc95a6046.tar.xz
zsh-6ce696f35236dc4c1b6249c6f1e7f64cc95a6046.zip
39502: Fork for assignment in LHS of pipeline.
  foo=bar | stuff

left the value of foo set to bar as we didn't realise we needed to
fork.
Diffstat (limited to 'Test/A01grammar.ztst')
-rw-r--r--Test/A01grammar.ztst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Test/A01grammar.ztst b/Test/A01grammar.ztst
index 921ff99a4..0b1085c3e 100644
--- a/Test/A01grammar.ztst
+++ b/Test/A01grammar.ztst
@@ -756,3 +756,10 @@
 >	print Stuff here
 >}
 >Stuff here
+
+  x=1
+  x=2 | echo $x
+  echo $x
+0:Assignment-only current shell commands in LHS of pipelin
+>1
+>1