From 817000920fe922cca3cfd8302c4aa26b9d608743 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 6 Sep 2009 21:35:37 +0000 Subject: 27247: zmv checking for **/ was wrong --- Functions/Misc/zmv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Functions') 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 -- cgit 1.4.1