summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Test/D04parameter.ztst20
2 files changed, 25 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d19cb8d08..37c751557 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-10-13  Peter Stephenson  <p.stephenson@samsung.com>
+
+	* 33459: Test/D04parameter.ztst: test for variable substitution
+	in variable splitting.
+
 2014-10-13  Oliver Kiddle  <opk@zsh.org>
 
 	* 33438: Completion/Base/Utility/_sequence: use the new way of
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 49dcea901..d7f39cb37 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -1636,3 +1636,23 @@
   print ${noexist:^foo})
 1:Zipping arrays, NO_UNSET part 2
 ?(eval):2: noexist: parameter not set
+
+  expr="a@b,c@d:e@f,g@h:i@j,k@l"
+  for sep in : , @; do
+    print -l ${(ps.$sep.)expr}
+  done
+0:Use of variable to get separator when splitting parameter
+>a@b,c@d
+>e@f,g@h
+>i@j,k@l
+>a@b
+>c@d:e@f
+>g@h:i@j
+>k@l
+>a
+>b,c
+>d:e
+>f,g
+>h:i
+>j,k
+>l