Do not use quotemeta to escape arguments on win32.

Ref pandora_enterprise#2625.
This commit is contained in:
Ramon Novoa 2018-08-08 11:24:50 +02:00
parent 63cc7aab9c
commit 90dd961fa1
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ my @opts = @ARGV;
my $timeout = shift(@opts); my $timeout = shift(@opts);
my $command; my $command;
foreach my $arg (@opts) { foreach my $arg (@opts) {
$command .= quotemeta ($arg) . ' '; $command .= $^O ne 'MSWin32' ? quotemeta ($arg) . ' ' : '"' . $command . '" ';
} }
chomp ($command); chomp ($command);
my $output = ''; my $output = '';