summaryrefslogtreecommitdiffstats
path: root/Test
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2026-06-04 06:44:16 +0200
committerMikael Magnusson <mikachu@gmail.com>2026-06-07 12:45:30 +0200
commitdda9d01fde4f6d692c1d66f458583abd0f084ef3 (patch)
tree9ceb96463b378bf9f27ed0b4e030cf7ee2691e97 /Test
parent54670: don't cache the user saying --disable-multibyte as meaning multibyte s... (diff)
downloadzsh-dda9d01fde4f6d692c1d66f458583abd0f084ef3.tar
zsh-dda9d01fde4f6d692c1d66f458583abd0f084ef3.tar.gz
zsh-dda9d01fde4f6d692c1d66f458583abd0f084ef3.tar.bz2
zsh-dda9d01fde4f6d692c1d66f458583abd0f084ef3.tar.lz
zsh-dda9d01fde4f6d692c1d66f458583abd0f084ef3.tar.xz
zsh-dda9d01fde4f6d692c1d66f458583abd0f084ef3.tar.zst
zsh-dda9d01fde4f6d692c1d66f458583abd0f084ef3.zip
54671: fix anchored pattern with --disable-multibyte
Just copied this code over from the multibyte branch.
Diffstat (limited to 'Test')
-rw-r--r--Test/D04parameter.ztst21
1 files changed, 21 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 218bca739..6a039d483 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -2460,6 +2460,27 @@ F:behavior, see http://austingroupbugs.net/view.php?id=888
>different
>string
+ foo="abcdef"
+ print 1${foo/#abc/REPLACED}
+ print 2${foo/%abc/REPLACED}
+ print 3${foo/#%abc/REPLACED}
+ print 4${foo/#def/REPLACED}
+ print 5${foo/%def/REPLACED}
+ print 6${foo/#%def/REPLACED}
+ print 7${foo/#bc/REPLACED}
+ print 8${foo/%bc/REPLACED}
+ print 9${foo/#%bc/REPLACED}
+0:Respect anchors
+>1REPLACEDdef
+>2abcdef
+>3abcdef
+>4abcdef
+>5abcREPLACED
+>6abcdef
+>7abcdef
+>8abcdef
+>9abcdef
+
my_width=6
my_index=1
my_options=Option1