about summary refs log tree commit diff
path: root/Test/D04parameter.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-08-01 17:16:43 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-08-01 17:16:43 +0000
commit1e7c19eca344f45b0f938066882c6aba4d2b9862 (patch)
treeaf71a26cfefa79d50edb9765cd04b2ec8088b27e /Test/D04parameter.ztst
parentee9b17ad2a687463a31e67106e9317618b73ad4e (diff)
downloadzsh-1e7c19eca344f45b0f938066882c6aba4d2b9862.tar.gz
zsh-1e7c19eca344f45b0f938066882c6aba4d2b9862.tar.xz
zsh-1e7c19eca344f45b0f938066882c6aba4d2b9862.zip
22572: use of (#m) was broken with pure strings
Diffstat (limited to 'Test/D04parameter.ztst')
-rw-r--r--Test/D04parameter.ztst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 6e97d7450..5d48328ed 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -824,6 +824,11 @@
 >MATCH 16 20 MATCH
 >5
 
+  string='this is a string'
+  print ${string//(#m)s/$MATCH $MBEGIN $MEND}
+0:(#m) flag with pure string
+>this 4 4 is 7 7 a s 11 11tring
+
   print -l JAMES${(u)${=:-$(echo yes yes)}}JOYCE
   print -l JAMES${(u)${=:-$(echo yes yes she said yes i will yes)}}JOYCE
 0:Bug with (u) flag reducing arrays to one element