double quotes round filenames in verbose modes
This commit is contained in:
parent
78d4a3f5d6
commit
78745d481b
1 changed files with 2 additions and 2 deletions
|
|
@ -104,7 +104,7 @@ sub move_files {
|
||||||
chomp($target);
|
chomp($target);
|
||||||
unless ( $source eq $target ) {
|
unless ( $source eq $target ) {
|
||||||
if ($opt_v||$opt_n) {
|
if ($opt_v||$opt_n) {
|
||||||
print "mv $source $target\n";
|
print "mv \"$source\" \"$target\"\n";
|
||||||
}
|
}
|
||||||
unless ($opt_n) {
|
unless ($opt_n) {
|
||||||
move("$source", "$target")
|
move("$source", "$target")
|
||||||
|
|
@ -206,7 +206,7 @@ sub safety_belt {
|
||||||
chomp $filename;
|
chomp $filename;
|
||||||
$rand = &rand_file;
|
$rand = &rand_file;
|
||||||
if ($opt_v||$opt_n) {
|
if ($opt_v||$opt_n) {
|
||||||
print "mv $filename $rand\n";
|
print "mv \"$filename\" \"$rand\"\n";
|
||||||
}
|
}
|
||||||
unless ($opt_n) {
|
unless ($opt_n) {
|
||||||
move("$filename", "$rand")
|
move("$filename", "$rand")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue