mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +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
|
|
@ -1,3 +1,7 @@
|
|||
2009-09-06 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 27247: Functions/Misc/zmv: checking for "**/" was wrong.
|
||||
|
||||
2009-09-05 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* Daniel Friesel <derf@tabularazor.org: 27244:
|
||||
|
|
@ -12121,5 +12125,5 @@
|
|||
|
||||
*****************************************************
|
||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||
* $Revision: 1.4768 $
|
||||
* $Revision: 1.4769 $
|
||||
*****************************************************
|
||||
|
|
|
|||
|
|
@ -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