about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@zsh.org>2023-11-15 20:16:04 -0800
committerBart Schaefer <schaefer@zsh.org>2023-11-15 20:16:04 -0800
commite6ad117ccb548c8411610571c92fa4094f275460 (patch)
tree81ea94a83fd4d1dfdc20d19da322ccd767eaf709 /Test
parentbe223aedee772fc31e12ec8c5277f50aae25b0fe (diff)
downloadzsh-e6ad117ccb548c8411610571c92fa4094f275460.tar.gz
zsh-e6ad117ccb548c8411610571c92fa4094f275460.tar.xz
zsh-e6ad117ccb548c8411610571c92fa4094f275460.zip
52202: improve handling of quoting in ${var/pattern/replacement}
Diffstat (limited to 'Test')
-rw-r--r--Test/D04parameter.ztst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index c2008582c..69a4fd3ec 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -2762,13 +2762,13 @@ F:behavior, see http://austingroupbugs.net/view.php?id=888
 
  slash='/'
  print -r -- x${slash/'/'}y
--Df:(users/28784) substituting a single-quoted backslash, part #1: slash
+0:(users/28784) substituting a single-quoted backslash, part #1: slash
 >xy
 
  single_quote="'"
- print -r -- x${single_quote/'/'}y
--Df:(users/28784) substituting a single-quoted backslash, part #2: single quote
->x/y
+ print -r -- x${single_quote/$'/'}y
+0:(users/28784) substituting a single-quoted backslash, part #2: single quote
+>x'y
 
  control="foobar"
  print -r -- x${control/'bar'}y