summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-06-03 22:03:43 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-06-03 22:03:43 +0000
commit22af58bf2b5b695cdbfaf4b7cdf82bb09136860b (patch)
treef30446b7473ab48abd4a4488d0284e68965a9e7d /Test
parent16324d2ff347e96e43dd95780ff014d2183faf8d (diff)
downloadzsh-22af58bf2b5b695cdbfaf4b7cdf82bb09136860b.tar.gz
zsh-22af58bf2b5b695cdbfaf4b7cdf82bb09136860b.tar.xz
zsh-22af58bf2b5b695cdbfaf4b7cdf82bb09136860b.zip
29451: ${##stuff} removes stuff from the head of $#
Diffstat (limited to 'Test')
-rw-r--r--Test/D04parameter.ztst10
1 files changed, 9 insertions, 1 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 378505e12..8f95420dd 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -179,9 +179,17 @@
   print ${##}
   set 1 2 3 4 5 6 7 8 9 10
   print ${##}
-0:${##} is length of $#
+  print ${##""}
+  print ${##1}
+  print ${##2}
+  print ${###<->} # oh, for pete's sake...
+0:${##} is length of $#, and other tales of hash horror
 >1
 >2
+>10
+>0
+>10
+>
 
   array=(once bitten twice shy)
   print IF${array}THEN