From 1e7c19eca344f45b0f938066882c6aba4d2b9862 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 1 Aug 2006 17:16:43 +0000 Subject: 22572: use of (#m) was broken with pure strings --- Test/D04parameter.ztst | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3