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:
parent
5eb53bf88d
commit
cb4ff5e970
3 changed files with 24 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue