about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2014-10-03 16:29:56 +0100
committerPeter Stephenson <pws@zsh.org>2014-10-03 16:29:56 +0100
commit31750795fe13fc0343ade4f2aadb55f20548f628 (patch)
tree267138cda2a015cd674702f558ff5d0a7eb96c62 /Test
parenta778215b7c866c50830d4e1f750848239d009683 (diff)
downloadzsh-31750795fe13fc0343ade4f2aadb55f20548f628.tar.gz
zsh-31750795fe13fc0343ade4f2aadb55f20548f628.tar.xz
zsh-31750795fe13fc0343ade4f2aadb55f20548f628.zip
33345: fix anonymous function complex command handling.
Longstanding problem caused simple anonymous function incorrectly to
reset the overall "complext" state, causing wordcode to be diverted
into execsimple(), which caused a crash 'cos ist wasn't simple.
Diffstat (limited to 'Test')
-rw-r--r--Test/C04funcdef.ztst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Test/C04funcdef.ztst b/Test/C04funcdef.ztst
index 193757090..10491a229 100644
--- a/Test/C04funcdef.ztst
+++ b/Test/C04funcdef.ztst
@@ -279,6 +279,10 @@
 >anon func
 >lsfoo
 
+ print foo | () cat
+0:Simple anonymous function should not simplify enclosing pipeline
+>foo
+
 %clean
 
  rm -f file.in file.out