Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
PATH may be Path (or even missing!) on Win32.
This prevents the split from exploding.
  • Loading branch information
jnthn committed Apr 21, 2014
1 parent 3425f2b commit bc7efa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/IO/Spec/Win32.pm
Expand Up @@ -36,7 +36,7 @@ my class IO::Spec::Win32 is IO::Spec::Unix {
}

method path {
my @path = split(';', %*ENV<PATH>);
my @path = split(';', %*ENV<PATH> // %*ENV<Path> // '');
@path».=subst(:global, q/"/, '');
@path = grep *.chars, @path;
unshift @path, ".";
Expand Down

0 comments on commit bc7efa3

Please sign in to comment.