summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <p.stephenson@samsung.com>2019-05-14 12:10:10 +0100
committerPeter Stephenson <p.stephenson@samsung.com>2019-05-14 12:10:10 +0100
commit30e356eb1a599dc634e2b46da272afacd46553de (patch)
tree203442a8875938b27af5932e96ffe13649945b24 /Test
parent95211f87ed04fff74475109d36027b5a24a71ab9 (diff)
downloadzsh-30e356eb1a599dc634e2b46da272afacd46553de.tar.gz
zsh-30e356eb1a599dc634e2b46da272afacd46553de.tar.xz
zsh-30e356eb1a599dc634e2b46da272afacd46553de.zip
44296: "typeset Q= {X}" crashed the shell.
Diffstat (limited to 'Test')
-rw-r--r--Test/B02typeset.ztst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Test/B02typeset.ztst b/Test/B02typeset.ztst
index ac86e0ad1..e7bf93794 100644
--- a/Test/B02typeset.ztst
+++ b/Test/B02typeset.ztst
@@ -1101,3 +1101,10 @@
 >export zsh_exported_readonly_scalar=1
 >readonly zsh_exported_readonly_array=( 2 )
 >readonly zsh_exported_readonly_scalar=1
+
+  # The second case was buggy as it needs special handling in postassigns
+  (typeset {X})
+  (typeset Q= {X})
+1:Regression test for {...} parsing in typeset
+?(eval):typeset:2: not valid in this context: {X}
+?(eval):typeset:3: not valid in this context: {X}