diff options
author | Bart Schaefer <schaefer@zsh.org> | 2020-09-13 16:19:52 -0700 |
---|---|---|
committer | Bart Schaefer <schaefer@zsh.org> | 2020-09-13 16:19:52 -0700 |
commit | 63b6398b7017d3850010f47458818a439479a456 (patch) | |
tree | 349aded0a6fbf66d164c0b5220fac9923b98b50f /Test | |
parent | 24a82b9dad1cbe109d9fb5753c429fd37b1618cd (diff) | |
download | zsh-63b6398b7017d3850010f47458818a439479a456.tar.gz zsh-63b6398b7017d3850010f47458818a439479a456.tar.xz zsh-63b6398b7017d3850010f47458818a439479a456.zip |
47364: Enable extendedglob in pattern with ${(*)name/pattern/replacement}
Mikael Magnusson: 47382: Completion for 47364
Diffstat (limited to 'Test')
-rw-r--r-- | Test/D02glob.ztst | 5 |
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 |