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:
parent
336836987f
commit
4263d2b821
3 changed files with 15 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue