diff options
Diffstat (limited to 'util/dofile.pl')
-rw-r--r-- | util/dofile.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/dofile.pl b/util/dofile.pl index 955224df7d..b0e20681dd 100644 --- a/util/dofile.pl +++ b/util/dofile.pl @@ -99,9 +99,9 @@ package main; # This adds quotes (") around the given string, and escapes any $, @, \, # " and ' by prepending a \ to them. sub quotify1 { - my $s = my $orig = shift @_; + my $s = shift @_; $s =~ s/([\$\@\\"'])/\\$1/g; - $s ne $orig || $s =~ /\s/ ? '"'.$s.'"' : $s; + '"'.$s.'"'; } # quotify_l LIST |