Skip to content

Commit 1ff01d2

Browse files
committed
Allow spaces in --prefix path
1 parent 6c24e71 commit 1ff01d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/lib/NQP/Configure.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ END
132132
}
133133
close($PARROT_CONFIG) or die $!;
134134
}
135-
elsif (open my $PARROT, '-|', "$file parrot-config.pir") {
135+
elsif (open my $PARROT, '-|', "\"$file\" parrot-config.pir") {
136136
while (<$PARROT>) {
137137
if (/^([\w:]+)=(.*)/) { $config{$1} = $2 }
138138
}
@@ -165,7 +165,7 @@ sub fill_template_text {
165165

166166
my $escape = sub {
167167
my $str = $_[0];
168-
$str =~ s{ }{\\\\ }g;
168+
$str =~ s{ }{\\ }g;
169169
$str;
170170
};
171171

0 commit comments

Comments
 (0)