summaryrefslogtreecommitdiff
path: root/Test/D02glob.ztst
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@zsh.org>2020-09-13 16:19:52 -0700
committerBart Schaefer <schaefer@zsh.org>2020-09-13 16:19:52 -0700
commit63b6398b7017d3850010f47458818a439479a456 (patch)
tree349aded0a6fbf66d164c0b5220fac9923b98b50f /Test/D02glob.ztst
parent24a82b9dad1cbe109d9fb5753c429fd37b1618cd (diff)
downloadzsh-63b6398b7017d3850010f47458818a439479a456.tar.gz
zsh-63b6398b7017d3850010f47458818a439479a456.zip
47364: Enable extendedglob in pattern with ${(*)name/pattern/replacement}
Mikael Magnusson: 47382: Completion for 47364
Diffstat (limited to 'Test/D02glob.ztst')
-rw-r--r--Test/D02glob.ztst5
1 files changed, 5 insertions, 0 deletions
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