else {
$path =~ s-\]\[--g; $path =~ s/><//g; # foo.][bar ==> foo.bar
$path =~ s/([\[<])000000\./$1/; # [000000.foo ==> foo
- 1 while $path =~ s{-\.-}{--}; # -.- ==> --
+ 1 while $path =~ s{([\[<-])\.-}{$1-}; # [.-.- ==> [--
$path =~ s/\.[^\[<\.]+\.-([\]\>])/$1/; # bar.foo.-] ==> bar]
$path =~ s/([\[<])(-+)/$1 . "\cx" x length($2)/e; # encode leading '-'s
$path =~ s/([\[<\.])([^\[<\.\cx]+)\.-\.?/$1/g; # bar.-.foo ==> foo
elsif ($dir =~ /^\$\([^\)]+\)\z/s) { $rslt = $dir; }
else { $rslt = vmspath($dir); }
}
- return $rslt;
+ return $self->canonpath($rslt);
}
=item catfile
}
}
else { $rslt = (defined($file) && length($file)) ? vmsify($file) : ''; }
- return $rslt;
+ return $self->canonpath($rslt);
}
}
else {
$tmp = (grep { defined and -d and (stat _)[2] & 2 }
- qw(/tmp /var/tmp /usr/tmp /sys$scratch),
+ qw(sys$scratch /tmp /var/tmp /usr/tmp),
@ENV{qw(TMP TEMP)})[0]
or print "# can't find world-writeable directory to test PATH\n";
}