Skip to content

Commit

Permalink
Merge pull request #2 from jamessan/empty-arguments
Browse files Browse the repository at this point in the history
Wrap an empty element of @$cmd with quotes, too.
  • Loading branch information
toddr committed May 17, 2013
2 parents 9608b02 + 122c471 commit 0f1f4cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/IPC/Run/Win32Helper.pm
Expand Up @@ -445,7 +445,7 @@ sub win32_spawn {
my $process;
my $cmd_line = join " ", map {
( my $s = $_ ) =~ s/"/"""/g;
$s = qq{"$s"} if /[\"\s]/;
$s = qq{"$s"} if /[\"\s]|^$/;
$s;
} @$cmd;

Expand Down

0 comments on commit 0f1f4cb

Please sign in to comment.