about summary refs log tree commit diff
path: root/Test/D04parameter.ztst
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2017-10-17 20:29:47 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2017-10-17 20:29:47 -0700
commitdcd4f02845cba2a19895e03b53e9dcea1817d3ad (patch)
treece6312d3acfe1dda31bb428c88db7ec5edb2701b /Test/D04parameter.ztst
parent3b0c8bdac8930712c2f7ee7fd0b737de2185144f (diff)
downloadzsh-dcd4f02845cba2a19895e03b53e9dcea1817d3ad.tar.gz
zsh-dcd4f02845cba2a19895e03b53e9dcea1817d3ad.tar.xz
zsh-dcd4f02845cba2a19895e03b53e9dcea1817d3ad.zip
41902: ${(z)...} continues parsing on unmatched quote when CSH_JUNKIE_QUOTES is set
Tests for 41902 and 41873
Diffstat (limited to 'Test/D04parameter.ztst')
-rw-r--r--Test/D04parameter.ztst21
1 files changed, 21 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 5ffaaa126..3b187f492 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -2401,3 +2401,24 @@ F:behavior, see http://austingroupbugs.net/view.php?id=888
 0:Append to element of associative array on creation
 >one
 >howsyourfathertoday
+
+  local b=$'a+=(${(o)$(ls -1 \'.*\' | perl -alne \'\nEND{ print " "; }\'\n)})'
+  printf ': %s\n' "${(@Z+cn+)b}"
+0:(Z) flag splitting with $( closed after embedded newline
+>: a+=(
+>: ${(o)$(ls -1 '.*' | perl -alne '
+>END{ print " "; }'
+>)}
+>: )
+
+  local b=$'# \' single\n# \" double\n# ` backtick\nword'
+  (setopt CSH_JUNKIE_QUOTES
+  printf ': %s\n' "${(@Z+n+)b}")
+0:(z) flag with CSH_JUNKIE_QUOTES
+>: #
+>: ' single
+>: #
+>: " double
+>: #
+>: ` backtick
+>: word