This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4096d0d
)
Fix [perl #18666] (taking the more conservative approach).
author
Jarkko Hietaniemi
<jhi@iki.fi>
Sun, 29 Dec 2002 00:51:29 +0000
(
00:51
+0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Sun, 29 Dec 2002 00:51:29 +0000
(
00:51
+0000)
p4raw-id: //depot/maint-5.8/perl@18362
lib/File/Spec/Unix.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/File/Spec/Unix.pm
b/lib/File/Spec/Unix.pm
index
d9615c0
..
2f45b5e
100644
(file)
--- a/
lib/File/Spec/Unix.pm
+++ b/
lib/File/Spec/Unix.pm
@@
-213,6
+213,7
@@
Takes no argument, returns the environment variable PATH as an array.
=cut
sub path {
+ return () unless exists $ENV{PATH};
my @path = split(':', $ENV{PATH});
foreach (@path) { $_ = '.' if $_ eq '' }
return @path;