summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordana <dana@dana.is>2026-07-08 15:39:01 -0500
committerdana <dana@dana.is>2026-07-08 15:39:16 -0500
commit996fdfb53d9369c378353d0bd752508c3a0be183 (patch)
tree07f8f5f72c765944f628b64ed1c33114c5772f39
parent54909: Untokenize before quoting unquoted literal values (diff)
downloadzsh-996fdfb53d9369c378353d0bd752508c3a0be183.tar
zsh-996fdfb53d9369c378353d0bd752508c3a0be183.tar.gz
zsh-996fdfb53d9369c378353d0bd752508c3a0be183.tar.bz2
zsh-996fdfb53d9369c378353d0bd752508c3a0be183.tar.lz
zsh-996fdfb53d9369c378353d0bd752508c3a0be183.tar.xz
zsh-996fdfb53d9369c378353d0bd752508c3a0be183.tar.zst
zsh-996fdfb53d9369c378353d0bd752508c3a0be183.zip
unposted: tests: add regression test for w/54909
-rw-r--r--ChangeLog5
-rw-r--r--Test/D04parameter.ztst20
2 files changed, 25 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0cd0c2404..9c0bfc81a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2026-07-08 dana <dana@dana.is>
+
+ * unposted: Test/D04parameter.ztst: add regression test for
+ w/54909
+
2026-07-08 Mikael Magnusson <mikachu@gmail.com>
* 54909: Src/subst.c: Untokenize before quoting unquoted literal
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 583f8d28a..71ff8c04f 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -2371,6 +2371,26 @@
0:(q) and (b) quoting deal with the EQUALS option
>\=foo =foo '=foo'
+ print -r - ${(q):-=} ${(qq):-=} ${(qqq):-=} ${(qqqq):-=} ${(q+):-=} ${(q-):-=}
+ print -r - \
+ ${(q):-a = b}, ${(qq):-a = b}, ${(qqq):-a = b}, ${(qqqq):-a = b}, \
+ ${(q+):-a = b}, ${(q-):-a = b}
+ print -r - \
+ ${(qq):-a= {b,c}*}, ${(qqq):-a= {b,c}*}, ${(qqqq):-a= {b,c}*}, \
+ ${(q+):-a= {b,c}*}, ${(q-):-a= {b,c}*}
+ ( print -r - ${(q):-=}a )
+ ( print -r - ${(q+):-= } )
+ ( print -r - ${(q+):-=a} )
+ ( print -r - ${(q):-a= {b,c}*} )
+-:regression: workers/54909, (q) etc tokenised chars
+>= '=' "=" $'=' '=' '='
+>a\ =\ b, 'a = b', "a = b", $'a = b', 'a = b', 'a = b'
+>'a= b*' 'a= c*', "a= b*" "a= c*", $'a= b*' $'a= c*', 'a= b*' 'a= c*', 'a= b*' 'a= c*'
+*?*no*found*
+*?*no*found*
+*?*no*found*
+*?*no*found*
+
args() { print $#; }
a=(foo)
args "${a[3,-1]}"