1
0
Fork 0
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:
Wayne Davison 2006-02-15 18:38:58 +00:00
parent 1811ec9b78
commit a3a1e8765a

View file

@ -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