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. |
107 | 107 | for i in %t |
108 | 108 | do |
109 | 109 | if [ -f "%D/$i" ]; then |
110 | | SUM1="`sum $i`" |
111 | | SUM2="`sum %D/$i`" |
| 110 | SUM1="`sum \"$i\"`" |
| 111 | SUM2="`sum \"%D/$i\"`" |
112 | 112 | if [ "$SUM1" = "$SUM2" ]; then |
113 | 113 | rm "$i" && echo "${i}: DELETED." |
114 | 114 | else |
115 | 115 | echo "$i and %D/$i differ: NOT deleted." |
116 | 116 | fi |
117 | 117 | else |
118 | | echo "%i has no copy in %D: NOT deleted." |
| 118 | echo "$i has no copy in %D: NOT deleted." |
119 | 119 | fi |
120 | 120 | done |
121 | 121 | |