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

30439: ${...:*...} with nonexistent or non-array after *

should return no results
This commit is contained in:
Peter Stephenson 2012-04-22 18:39:53 +00:00
parent 5eb53bf88d
commit cb4ff5e970
3 changed files with 24 additions and 2 deletions

View file

@ -182,6 +182,9 @@
scalar='two words'
print ${scalar:|mod}
print ${scalar:*mod}
print ${args:*nonexistent}
empty=
print ${args:*empty}
0:"|" array exclusion and "*" array intersection
>one two
>#foo (bar 'three'
@ -191,6 +194,8 @@
>two words
>
>two words
>
>
str1='twocubed'
array=(the number of protons in an oxygen nucleus)