diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2012-05-01 19:43:44 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2012-05-01 19:43:44 +0000 |
commit | cd1b5d86e0a6ac37e982c6a3b8725fd11076f14c (patch) | |
tree | e6e20319c704a612317e9459549315f77195a73c /Test/D04parameter.ztst | |
parent | 8da652f6ae53990288690abc96f438f561f5af4c (diff) | |
download | zsh-cd1b5d86e0a6ac37e982c6a3b8725fd11076f14c.tar.gz zsh-cd1b5d86e0a6ac37e982c6a3b8725fd11076f14c.tar.xz zsh-cd1b5d86e0a6ac37e982c6a3b8725fd11076f14c.zip |
users/17046: don't count too many elements when splitting quoted parameter
substitution on null parameter
Diffstat (limited to 'Test/D04parameter.ztst')
-rw-r--r-- | Test/D04parameter.ztst | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index cdeb15bfd..01f841218 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -1292,7 +1292,7 @@ >in >it - foo="line:with::missing::fields:in:it" + foo="line:with::missing::fields:in:it:" print -l "${(@s.:.)foo}" 0:Retention of empty fields in quoted splitting with "@" >line @@ -1303,6 +1303,20 @@ >fields >in >it +> + + str=abcd + print -l ${(s..)str} + print -l "${(s..)str}" +0:splitting of strings into characters +>a +>b +>c +>d +>a +>b +>c +>d array=('%' '$' 'j' '*' '$foo') print ${array[(i)*]} "${array[(i)*]}" |