summaryrefslogtreecommitdiffstats
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2012-04-22 18:39:53 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2012-04-22 18:39:53 +0000
commitcb4ff5e9703d6641b10ca053f1caad2a8b19d2f9 (patch)
tree0aa468fc42c6d92b6bf120af91a66af87651077f /Test
parent30431 with typo in _typeset fix: (diff)
downloadzsh-cb4ff5e9703d6641b10ca053f1caad2a8b19d2f9.tar
zsh-cb4ff5e9703d6641b10ca053f1caad2a8b19d2f9.tar.gz
zsh-cb4ff5e9703d6641b10ca053f1caad2a8b19d2f9.tar.bz2
zsh-cb4ff5e9703d6641b10ca053f1caad2a8b19d2f9.tar.lz
zsh-cb4ff5e9703d6641b10ca053f1caad2a8b19d2f9.tar.xz
zsh-cb4ff5e9703d6641b10ca053f1caad2a8b19d2f9.tar.zst
zsh-cb4ff5e9703d6641b10ca053f1caad2a8b19d2f9.zip
30439: ${...:*...} with nonexistent or non-array after *
should return no results
Diffstat (limited to 'Test')
-rw-r--r--Test/D04parameter.ztst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index d5a6a403e..cdeb15bfd 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -182,6 +182,9 @@
scalar='two words'
print ${scalar:|mod}
print ${scalar:*mod}
+ print ${args:*nonexistent}
+ empty=
+ print ${args:*empty}
0:"|" array exclusion and "*" array intersection
>one two
>#foo (bar 'three'
@@ -191,6 +194,8 @@
>two words
>
>two words
+>
+>
str1='twocubed'
array=(the number of protons in an oxygen nucleus)