Skip to content

Commit

Permalink
Merge pull request #3762 from rakudo/ugexe-patch-2
Browse files Browse the repository at this point in the history
Fix windows process quoting bug (#3761)
  • Loading branch information
Altai-man committed Jun 19, 2020
2 parents 2bfaab6 + 9a75738 commit 1b52f01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.c/Proc/Async.pm6
Expand Up @@ -286,7 +286,7 @@ my class Proc::Async {
$promise
}

method !win-quote-CommandLineToArgvW(*@args where .so) {
method !win-quote-CommandLineToArgvW(*@args) {
my @quoted_args;
for @args -> $arg {
if !$arg.contains(' ') && !$arg.contains('"') && !$arg.contains('\t') && !$arg.contains('\n') && !$arg.contains('\v') {
Expand Down Expand Up @@ -331,7 +331,7 @@ my class Proc::Async {
#?if !jvm
my @quoted-args;
if Rakudo::Internals.IS-WIN {
@quoted-args.push($!win-verbatim-args
@quoted-args.append($!win-verbatim-args
?? @!args.join(' ')
!! self!win-quote-CommandLineToArgvW(@!args));
}
Expand Down

0 comments on commit 1b52f01

Please sign in to comment.