about summary refs log tree commit diff
path: root/Test/D04parameter.ztst
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2006-02-15 18:38:58 +0000
committerWayne Davison <wayned@users.sourceforge.net>2006-02-15 18:38:58 +0000
commita3a1e8765ad454131392d1b5283f8fc48ed10c6e (patch)
tree890c07b13bb9ebc3d4cef79e6897e9c26e607329 /Test/D04parameter.ztst
parent1811ec9b7837d5bc1fa2428145a5b9ceedead160 (diff)
downloadzsh-a3a1e8765ad454131392d1b5283f8fc48ed10c6e.tar.gz
zsh-a3a1e8765ad454131392d1b5283f8fc48ed10c6e.tar.xz
zsh-a3a1e8765ad454131392d1b5283f8fc48ed10c6e.zip
Added a test for ${name+$array$scalar}.
Diffstat (limited to 'Test/D04parameter.ztst')
-rw-r--r--Test/D04parameter.ztst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 284042d90..081ddf76b 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -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