Package: mmv
Version: 1.01b-15

I just tried to rename a bunch of directories:

  $ mmv -v "DSide-*" "DSide #1"
  DSide-* -> DSide #1 : no match.
  Nothing done.

This is completely unhelpful, as the error "no match" seems to indicate the 
match string was wrong. Only after many fruitless attempts and thoroughly 
searching the manpage I found the "-r" option that (for reasons I don't 
understand) is necessary to convince mmv to move directories. At the very 
least I would have expected the "-v" to tell me that the matching directory 
entries are not considered in the rename.

Looking at the sources, I'd do something like the following to function 
keepmatch():


 #ifdef IS_MSDOS
-       if ((ffrom->fi_attrib & FA_DIREC) ? !dirs : !fils)
+       if ((ffrom->fi_attrib & FA_DIREC) ? !dirs : !fils) {
 #else
        getstat(pathbuf, ffrom);
-       if ((ffrom->fi_stflags & FI_ISDIR) ? !dirs : !fils)
+       if ((ffrom->fi_stflags & FI_ISDIR) ? !dirs : !fils) {
 #endif
+               if (verbose)
+                       printf("ignoring directory %s\n", ffrom->fi_name);
                return(0);
+       }


Cheers!

Uli



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to