about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-02-27 15:51:26 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-02-27 15:51:26 +0000
commit0076d686645eb58256f2051a3f82136b9d70ea42 (patch)
treed4392ed7dc4f47d3f800fb7398e6c9f57f084efa /Test
parent4ff6e11df26f4504c30fd5f2e981296e83c74dd9 (diff)
downloadzsh-0076d686645eb58256f2051a3f82136b9d70ea42.tar.gz
zsh-0076d686645eb58256f2051a3f82136b9d70ea42.tar.xz
zsh-0076d686645eb58256f2051a3f82136b9d70ea42.zip
24611: fix ${+array[...]} for empty range
Diffstat (limited to 'Test')
-rw-r--r--Test/D04parameter.ztst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index e8718a691..6775803a7 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -52,6 +52,14 @@
 0:$+...
 >1 1 0 0
 
+  x=()
+  print ${+x} ${+x[1]} ${+x[(r)foo]} ${+x[(r)bar]}
+  x=(foo)
+  print ${+x} ${+x[1]} ${+x[(r)foo]} ${+x[(r)bar]}
+0:$+... with arrays
+>1 0 0 0
+>1 1 1 0
+
   set1=set1v
   null1=
   print ${set1:-set1d} ${set1-set2d} ${null1:-null1d} ${null1-null2d} x