diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2012-02-29 09:57:40 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2012-02-29 09:57:40 +0000 |
commit | 6f93994a5aeb3a8290153ec159af35bbd96a6673 (patch) | |
tree | a6a682ebf0479364be21d2d74a4ee28d4dad9b4c /Test | |
parent | d0d0490c67c34a4e73913e743b9e0602e33f6f9f (diff) | |
download | zsh-6f93994a5aeb3a8290153ec159af35bbd96a6673.tar.gz zsh-6f93994a5aeb3a8290153ec159af35bbd96a6673.tar.xz zsh-6f93994a5aeb3a8290153ec159af35bbd96a6673.zip |
30299: "$*" was split with SHWORDSPLIT if IFS was empty or unset
Diffstat (limited to 'Test')
-rw-r--r-- | Test/D04parameter.ztst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index 7eb721226..8bc37ff4c 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -1475,3 +1475,13 @@ print ${#foo} 0:Nularg removed from split empty string >0 + + (set -- a b c + setopt shwordsplit + IFS= + print -rl "$*" + unset IFS + print -rl "$*") +0:Regression test for shwordsplit with null or unset IFS and quoted array +>abc +>a b c |