[Pkg-mc-devel] [Bug 1094324] Re: "Delete tagged files if a copy exists in the other directory" doesn't work if names of the files or folders contains space

Mantas Kriaučiūnas mantas at akl.lt
Fri Jul 3 12:16:02 UTC 2015


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

** Changed in: mc (Ubuntu)
       Status: Fix Released => Confirmed

-- 
You received this bug notification because you are a member of Debian MC
Packaging Group, which is subscribed to Midnight Commander.
https://bugs.launchpad.net/bugs/1094324

Title:
  "Delete tagged files if a copy exists in the other directory" doesn't
  work if names of the files or folders contains space

Status in Midnight Commander - text-mode file manager:
  Fix Released
Status in mc package in Ubuntu:
  Confirmed
Status in mc package in Baltix:
  Confirmed

Bug description:
  Midnight commander has nice feature - you can mark some file in one side and MC can compare these files with identically named files in other side and remove them if files are identical. This function can be started from the "User menu" (key F2) and is named"
  "D  Delete tagged files if a copy exists in the other directory"
  But "Delete tagged files if a copy exists in the other directory" doesn't work if names of the files or folders contains space :(
  Problem is in /etc/mc/mc.menu - I'm attaching a patch against mc.menu, which fixes this problem - I've tested with mc from Ubuntu 12.04 and newer :)

To manage notifications about this bug go to:
https://bugs.launchpad.net/mc/+bug/1094324/+subscriptions



More information about the Pkg-mc-devel mailing list