Comment 11 for bug 1094324

Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

this mc problem isn't fixed - attached correct patch against mc.menu from mc 4.8.8 which fixes identical files deletion when folders and/or files names contains spaces, see comment #6

Problem in current mc is quoted %D - see this line in mc.menu:
  if [ -f "%D/$i" ]; then
because of quoted %D deletion doesn't work: mc doesn't even find identical files - I get a message "FILENAME has no copy in /tmp/folder\ with\ space: NOT deleted." in terminal.
Deletion works correctly when %D isn't quoted, only $i is quoted:
  if [ -f %D/"$i" ]; then