Skip to content

Commit ff0c277

Browse files
committed
Make impl identifier code a bit smarter
So if we produce some debug output that dumps extra lines, they don't become part of the command we run.
1 parent d9b32aa commit ff0c277

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fudgeandrun

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ if ($impl_p) {
6666
}
6767
else {
6868
# windows / cross platform needs -e "" with EVAL and \c[DOLLAR SIGN]
69-
$impl = `$p6 -e "EVAL qq/say \\c[DOLLAR SIGN]*PERL.compiler.name, '.', \\c[DOLLAR SIGN]*VM.name/" 2>&1`;
69+
($impl) = `$p6 -e "EVAL qq/say \\c[DOLLAR SIGN]*PERL.compiler.name, '.', \\c[DOLLAR SIGN]*VM.name/" 2>&1`
70+
=~ /\A([^\n]+)/;
71+
7072
die capture_error($p6, $impl) if $?;
7173
chomp($impl);
7274
}

0 commit comments

Comments
 (0)