Ticket #2947: 0001-Ticket-2947-fix-quoting-and-message-in-Delete-tagged.patch

File 0001-Ticket-2947-fix-quoting-and-message-in-Delete-tagged.patch, 1.0 KB (added by zaytsev, 6 years ago)
  • misc/mc.menu

    From a7bf56cbeb3716de942758071a6676afb8e7e365 Mon Sep 17 00:00:00 2001
    From: "Yury V. Zaytsev" <yury@shurup.com>
    Date: Mon, 7 Jan 2013 16:03:41 +0100
    Subject: [PATCH] Ticket #2947: fix quoting and message in "Delete tagged
     files..." @ mc.menu
    
    Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
    ---
     misc/mc.menu |    6 +++---
     1 file changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/misc/mc.menu b/misc/mc.menu
    index 58daeeb..a753413 100644
    a b D Delete tagged files if a copy exists in the other directory. 
    107107        for i in %t 
    108108        do 
    109109          if [ -f "%D/$i" ]; then 
    110             SUM1="`sum $i`" 
    111             SUM2="`sum %D/$i`" 
     110            SUM1="`sum \"$i\"`" 
     111            SUM2="`sum \"%D/$i\"`" 
    112112            if [ "$SUM1" = "$SUM2" ]; then 
    113113              rm "$i" && echo "${i}: DELETED." 
    114114            else 
    115115              echo "$i and %D/$i differ: NOT deleted." 
    116116            fi 
    117117          else 
    118             echo "%i has no copy in %D: NOT deleted." 
     118            echo "$i has no copy in %D: NOT deleted." 
    119119          fi 
    120120        done 
    121121