Fix to consider path separator as config init may never be run

This commit is contained in:
Ilia Ross 2025-06-12 01:57:35 +03:00
parent 5462c3bbf8
commit 06ce137903
No known key found for this signature in database
GPG Key ID: 121E166DD9C821AB

View File

@ -2126,7 +2126,7 @@ if ($_[0] =~ /^\// || $_[0] =~ /^[a-z]:[\\\/]/i) {
else {
# Check each directory in the path
my %donedir;
foreach my $d (split($path_separator, $ENV{'PATH'})) {
foreach my $d (split($path_separator || ":", $ENV{'PATH'})) {
next if ($donedir{$d}++);
$d =~ s/$slash$// if ($d ne $slash);
my $t = &translate_filename("$d/$_[0]");