mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 16:50:58 +01:00
27247: zmv checking for **/ was wrong
This commit is contained in:
parent
1138599033
commit
817000920f
2 changed files with 6 additions and 2 deletions
|
|
@ -187,7 +187,7 @@ if [[ -n $opt_w || -n $opt_W ]]; then
|
|||
# Well, this seems to work.
|
||||
# The tricky bit is getting all forms of [...] correct, but as long
|
||||
# as we require inactive bits to be backslashed its not so bad.
|
||||
find='(#m)((\*\*#/|[*?]|<[0-9]#-[0-9]#>|\[(^|)(\]|)(\[:[a-z]##:\]|\\?|[^\]])##\])\##|?\###)'
|
||||
find='(#m)((\*\*##/|[*?]|<[0-9]#-[0-9]#>|\[(^|)(\]|)(\[:[a-z]##:\]|\\?|[^\]])##\])\##|?\###)'
|
||||
tmp="${pat//${~find}/$[++cnt]}"
|
||||
if [[ $cnt = 0 ]]; then
|
||||
print -r -- "$myname: warning: no wildcards were found in search pattern" >&2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue