double quotes round filenames in verbose modes

This commit is contained in:
Ward Wouts 2002-01-23 19:33:29 +00:00
parent 78d4a3f5d6
commit 78745d481b

View file

@ -104,7 +104,7 @@ sub move_files {
chomp($target);
unless ( $source eq $target ) {
if ($opt_v||$opt_n) {
print "mv $source $target\n";
print "mv \"$source\" \"$target\"\n";
}
unless ($opt_n) {
move("$source", "$target")
@ -206,7 +206,7 @@ sub safety_belt {
chomp $filename;
$rand = &rand_file;
if ($opt_v||$opt_n) {
print "mv $filename $rand\n";
print "mv \"$filename\" \"$rand\"\n";
}
unless ($opt_n) {
move("$filename", "$rand")