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-16 19:53:00 +0000
committerWayne Davison <wayned@users.sourceforge.net>2006-02-16 19:53:00 +0000
commit64aae150a0875df865d5ba7fdfdee870bdeefb18 (patch)
treee56985b9e1bc79d8c169e8383bab9e3cc57f3a07 /Test/D04parameter.ztst
parent803fa9872f49f35cecd44ee7b60b150eb9e22327 (diff)
downloadzsh-64aae150a0875df865d5ba7fdfdee870bdeefb18.tar.gz
zsh-64aae150a0875df865d5ba7fdfdee870bdeefb18.tar.xz
zsh-64aae150a0875df865d5ba7fdfdee870bdeefb18.zip
Test that ${(A)=name:=word} avoids splitting on quoted whitespace.
Diffstat (limited to 'Test/D04parameter.ztst')
-rw-r--r--Test/D04parameter.ztst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 081ddf76b..c02019db5 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -551,9 +551,10 @@
 
   local sure_that='sure that' varieties_of='varieties of' one=1 two=2
   extra=(5 4 3)
+  unset foo
   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 ${(A)=foo=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