about summary refs log tree commit diff
path: root/Test/D04parameter.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2016-01-20 11:22:09 +0000
committerPeter Stephenson <pws@zsh.org>2016-01-20 11:22:09 +0000
commit1c41f98aabc20fce8a1eb8fd7d1b6baabfa1dea5 (patch)
tree7a5d15c093d44450910c24801141c6a8e348fb03 /Test/D04parameter.ztst
parentd18ce35d060163ea0d531170b65e1c38311af166 (diff)
downloadzsh-1c41f98aabc20fce8a1eb8fd7d1b6baabfa1dea5.tar.gz
zsh-1c41f98aabc20fce8a1eb8fd7d1b6baabfa1dea5.tar.xz
zsh-1c41f98aabc20fce8a1eb8fd7d1b6baabfa1dea5.zip
37705: don't turn - to Dash after start of brace parameter
Diffstat (limited to 'Test/D04parameter.ztst')
-rw-r--r--Test/D04parameter.ztst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index bcea980ad..a6817fe22 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -1880,3 +1880,9 @@
 >'two words'
 >'three so-called '\''words'\'
 >'three so-called ''words'''
+
+  array=(one two three)
+  array[1]=${nonexistent:-foo}
+  print $array
+0:"-" works after "[" in same expression (Dash problem)
+>foo two three