about summary refs log tree commit diff
path: root/Test/D04parameter.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2012-02-29 09:57:40 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2012-02-29 09:57:40 +0000
commit6f93994a5aeb3a8290153ec159af35bbd96a6673 (patch)
treea6a682ebf0479364be21d2d74a4ee28d4dad9b4c /Test/D04parameter.ztst
parentd0d0490c67c34a4e73913e743b9e0602e33f6f9f (diff)
downloadzsh-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/D04parameter.ztst')
-rw-r--r--Test/D04parameter.ztst10
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