mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 04:30:24 +02:00
Added a test for ${name+$array$scalar}.
This commit is contained in:
parent
1811ec9b78
commit
a3a1e8765a
1 changed files with 5 additions and 0 deletions
|
@ -550,10 +550,12 @@
|
|||
>again
|
||||
|
||||
local sure_that='sure that' varieties_of='varieties of' one=1 two=2
|
||||
extra=(5 4 3)
|
||||
set Make $sure_that "this test keeps" on 'preserving all' "$varieties_of" quoted whitespace
|
||||
print -l ${=1+"$@"}
|
||||
print -l ${=1+Make $sure_that "this test keeps" on 'preserving all' "$varieties_of" quoted whitespace}
|
||||
print -l ${=1+$one $two}
|
||||
print -l ${1+$extra$two$one}
|
||||
0:Regression test of ${=1+"$@"} bug and some related expansions
|
||||
>Make
|
||||
>sure that
|
||||
|
@ -574,6 +576,9 @@
|
|||
>whitespace
|
||||
>1
|
||||
>2
|
||||
>5
|
||||
>4
|
||||
>321
|
||||
|
||||
splitfn() {
|
||||
emulate -L sh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue