From 63b6398b7017d3850010f47458818a439479a456 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sun, 13 Sep 2020 16:19:52 -0700 Subject: 47364: Enable extendedglob in pattern with ${(*)name/pattern/replacement} Mikael Magnusson: 47382: Completion for 47364 --- Test/D02glob.ztst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Test') diff --git a/Test/D02glob.ztst b/Test/D02glob.ztst index f250244e7..176846d46 100644 --- a/Test/D02glob.ztst +++ b/Test/D02glob.ztst @@ -792,6 +792,11 @@ *>*/glob.tmp/(flip|flop) *>*/glob.tmp/(flip|flop)/trailing/components + unsetopt extendedglob + print -r -- ${(*)=${(@s.+.):-A+B}/(#b)(?)/-${(L)match[1]} ${match[1]}} +0:the '*' qualfier enables extended_glob for pattern matching +>-a A -b B + %clean # Fix unreadable-directory permissions so ztst can clean up properly -- cgit 1.4.1