summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-04-23 15:30:22 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-04-23 15:30:22 +0000
commitfc4511ecb7b68916220edd0bbdf67b2b8eac62d0 (patch)
tree608a56abf719c8a1e61263b4aa2a769a782973b1 /Test
parentfe4a49488c9c4ad4e5526c2b0d6915b12d811fc8 (diff)
downloadzsh-fc4511ecb7b68916220edd0bbdf67b2b8eac62d0.tar.gz
zsh-fc4511ecb7b68916220edd0bbdf67b2b8eac62d0.tar.xz
zsh-fc4511ecb7b68916220edd0bbdf67b2b8eac62d0.zip
Fix subscripting bug with backslash-double-quote.
Diffstat (limited to 'Test')
-rw-r--r--Test/D06subscript.ztst15
1 files changed, 15 insertions, 0 deletions
diff --git a/Test/D06subscript.ztst b/Test/D06subscript.ztst
index 9bcf28374..4a96b01ab 100644
--- a/Test/D06subscript.ztst
+++ b/Test/D06subscript.ztst
@@ -145,3 +145,18 @@
 0:Associative array keys interpreted as patterns
 >\2 backcbrack cbrack star
 >\\\4 \\\? star zounds
+
+  typeset "A[one\"two\"three\"quotes]"=QQQ
+  typeset 'A[one\"two\"three\"quotes]'=qqq
+  print -R "$A[one\"two\"three\"quotes]"
+  print -R $A[one\"two\"three\"quotes]
+  A[one"two"three"four"quotes]=QqQq
+  print -R $A[one"two"three"four"quotes]
+  print -R $A[$A[(i)one\"two\"three\"quotes]]
+  print -R "$A[$A[(i)one\"two\"three\"quotes]]"
+0:Associative array keys with double quotes
+>QQQ
+>qqq
+>QqQq
+>qqq
+>QQQ