about summary refs log tree commit diff
path: root/Functions/Misc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-09-06 21:35:37 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-09-06 21:35:37 +0000
commit817000920fe922cca3cfd8302c4aa26b9d608743 (patch)
tree144a3aac0548264137094c83a4bd2a4a808ba383 /Functions/Misc
parent11385990339e7464466b4a83ae62e8149505bf75 (diff)
downloadzsh-817000920fe922cca3cfd8302c4aa26b9d608743.tar.gz
zsh-817000920fe922cca3cfd8302c4aa26b9d608743.tar.xz
zsh-817000920fe922cca3cfd8302c4aa26b9d608743.zip
27247: zmv checking for **/ was wrong
Diffstat (limited to 'Functions/Misc')
-rw-r--r--Functions/Misc/zmv2
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/Misc/zmv b/Functions/Misc/zmv
index 0ff959d1f..86a8fce9c 100644
--- a/Functions/Misc/zmv
+++ b/Functions/Misc/zmv
@@ -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