tools: Remove warning from newer versions of Perl.

Replace \1 with $1 in substitution strings.
This commit is contained in:
Andrew Johnson
2011-06-08 12:15:18 -05:00
parent 7560fb1bb1
commit 8d15407e2f

View File

@@ -29,7 +29,7 @@ $Getopt::Std::OUTPUT_HELP_VERSION = 1;
my $path = AbsPath(shift);
# Escape shell special characters unless on Windows, which doesn't allow them.
$path =~ s/([!"\$&'\(\)*,:;<=>?\[\\\]^`{|}])/\\\1/g unless $^O eq 'MSWin32';
$path =~ s/([!"\$&'\(\)*,:;<=>?\[\\\]^`{|}])/\\$1/g unless $^O eq 'MSWin32';
print "$path\n";