about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-04-23 15:13:20 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-04-23 15:13:20 +0000
commitfe4a49488c9c4ad4e5526c2b0d6915b12d811fc8 (patch)
tree60541974265a186f8296f973b19e35041690ba43
parenteee9d4975590579b645207f54eaa78b8dcbb3d95 (diff)
downloadzsh-fe4a49488c9c4ad4e5526c2b0d6915b12d811fc8.tar.gz
zsh-fe4a49488c9c4ad4e5526c2b0d6915b12d811fc8.tar.xz
zsh-fe4a49488c9c4ad4e5526c2b0d6915b12d811fc8.zip
Test for (kK) subscript flags bugfix.
-rw-r--r--Test/D06subscript.ztst11
1 files changed, 10 insertions, 1 deletions
diff --git a/Test/D06subscript.ztst b/Test/D06subscript.ztst
index 861202544..9bcf28374 100644
--- a/Test/D06subscript.ztst
+++ b/Test/D06subscript.ztst
@@ -100,13 +100,16 @@
   print -R ${(k)A[(r)qxstar]} $A[${(q)x}]
   # A[*] is interpreted specially, assignment to it fails silently (oops)
   A[*]=star
-  A[\*]=backstar
   print -R ${(k)A[(r)star]} $A[$x]
+  A[(e)*]=star
+  A[\*]=backstar
+  print -R ${(k)A[(r)star]} $A[(e)*]
   print -R ${(k)A[(r)backstar]} $A[\*]
 0:Associative array assignment
 >* xstar
 >\* qxstar
 >xstar
+>* star
 >\* backstar
 
   o='['
@@ -136,3 +139,9 @@
 >zounds
 >zounds
 >zounds
+
+  print -R ${(o)A[(K)\]]}
+  print -R ${(o)A[(K)\\\]]}
+0:Associative array keys interpreted as patterns
+>\2 backcbrack cbrack star
+>\\\4 \\\? star zounds