Skip to content

Commit

Permalink
Fix quoting command line args on windows moritz_++
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.pugscode.org/pugs@31982 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information
patrickas committed Aug 13, 2010
1 parent 3aa07c3 commit 37e2c73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/Test/Util.pm
Expand Up @@ -76,7 +76,8 @@ sub get_out( Str $code, Str $input?, :@args) is export {
};

my @actual_args;
my $sep = q[']; # TODO: adapt this to q["] on windows
my $sep = q['];
$sep = q["] if $*OS ~~ /:i win/;
for @args {
if /<['"]>/ {
die "Command line arguments may not contain single or double quotes";
Expand Down

0 comments on commit 37e2c73

Please sign in to comment.