1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 04:30:24 +02:00

28889: ${##} should return the length of $#

This commit is contained in:
Peter Stephenson 2011-03-11 21:05:59 +00:00
parent 336836987f
commit 4263d2b821
3 changed files with 15 additions and 1 deletions

View file

@ -175,6 +175,14 @@
0:${#...}, $#...
>8 8 8 8 8 8 8 8
set 1 2 3 4 5 6 7 8 9
print ${##}
set 1 2 3 4 5 6 7 8 9 10
print ${##}
0:${##} is length of $#
>1
>2
array=(once bitten twice shy)
print IF${array}THEN
print IF${^array}THEN