From 30e356eb1a599dc634e2b46da272afacd46553de Mon Sep 17 00:00:00 2001
From: Peter Stephenson
Date: Tue, 14 May 2019 12:10:10 +0100
Subject: 44296: "typeset Q= {X}" crashed the shell.
---
Test/B02typeset.ztst | 7 +++++++
1 file changed, 7 insertions(+)
(limited to 'Test')
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}
--
cgit 1.4.1