summaryrefslogtreecommitdiffstats
path: root/Test/C04funcdef.ztst
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/C04funcdef.ztst
parentunposted: comments in previous commit were reversed (diff)
downloadzsh-31750795fe13fc0343ade4f2aadb55f20548f628.tar
zsh-31750795fe13fc0343ade4f2aadb55f20548f628.tar.gz
zsh-31750795fe13fc0343ade4f2aadb55f20548f628.tar.bz2
zsh-31750795fe13fc0343ade4f2aadb55f20548f628.tar.lz
zsh-31750795fe13fc0343ade4f2aadb55f20548f628.tar.xz
zsh-31750795fe13fc0343ade4f2aadb55f20548f628.tar.zst
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/C04funcdef.ztst')
-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