diff --git a/src/tools/fullPathName.pl b/src/tools/fullPathName.pl index da921f6dc..27fc57a21 100644 --- a/src/tools/fullPathName.pl +++ b/src/tools/fullPathName.pl @@ -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";