Skip to content

Commit

Permalink
Merge pull request #525 from mohawk2/stable-testspacefix
Browse files Browse the repository at this point in the history
t/exit.t quote-protect $Perl in case of spaces
  • Loading branch information
exodist committed Dec 28, 2014
2 parents 0b9f927 + e2e1928 commit a10f252
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/exit.t
Expand Up @@ -30,9 +30,10 @@ if( $^O eq 'VMS' ) {
# Quiet noisy 'SYS$ABORT'
$Perl .= q{ -"I../lib"} if $ENV{PERL_CORE};
$Perl .= q{ -"Mvmsish=hushed"};
} else {
$Perl = qq("$Perl"); # protect from shell if spaces
}


eval { require POSIX; &POSIX::WEXITSTATUS(0) };
if( $@ ) {
*exitstatus = sub { $_[0] >> 8 };
Expand Down

0 comments on commit a10f252

Please sign in to comment.