diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2013-11-17 20:33:57 +0000 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2013-11-17 20:33:57 +0000 |
commit | bd919f30aeb45828404899a1524b2028446860bd (patch) | |
tree | 13e320dfae6a9a2334cfc041198700aa671123b1 /Test/D04parameter.ztst | |
parent | 412eb078850e2d5213048052e40215322e3949c8 (diff) | |
download | zsh-bd919f30aeb45828404899a1524b2028446860bd.tar.gz zsh-bd919f30aeb45828404899a1524b2028446860bd.tar.xz zsh-bd919f30aeb45828404899a1524b2028446860bd.zip |
32001: fix crash on ${:*} and ${:|}
Diffstat (limited to 'Test/D04parameter.ztst')
-rw-r--r-- | Test/D04parameter.ztst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index bea945971..a8cc93a12 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -1551,3 +1551,12 @@ 0:Empty parameter shouldn't cause modifiers to crash the shell > > + +# This used to cause uncontrolled behaviour, but at best +# you got the wrong output so the check is worth it. + args() { print $#; } + args ${:*} + args ${:|} +0:Intersection and disjunction with empty parameters +>0 +>0 |