At 12:12 PM -0700 12/6/03, Snow, Greg wrote:
>One of several problems which resulted in our failure to migrate from perl 5.005_03
>is in the evaluation of certain ENV variables.
I'm sorry to hear that as there are a *lot* of known bugs that have
been squashed since 5.005_03.
>$ENV{PATHanything} is returning $ENV{PATH} when PATHanything is not defined.
>
>This behavior can be observed with HOME and TERM, as well as PATH.
<big snip>
>Does this problem still exist in later versions?
With the latest development patch-level leading towards 5.10, I can
confirm the exact behavior you are seeing. Also, stepping back a
bit, even if no PATH* logical names are defined, anything that begins
with PATH but is longer seems to get interpreted as if it were PATH.
$ show log path*
<snip>
%SHOW-S-NOTRAN, no translation for logical name PATH*
$ perl -e "print $ENV{PATHOS_RIDDEN};"
disk$alphasys:[craig.test]
$ perl -e "print $ENV{PATHOLOGICAL};"
disk$alphasys:[craig.test]
It's a definite bug, Greg. Thanks for the thorough report. I've
taken a quick look at the code and don't see anything obvious, so
this will take some slogging to fix.
--
________________________________________
Craig A. Berry
mailto:[EMAIL PROTECTED]
"... getting out of a sonnet is much more
difficult than getting in."
Brad Leithauser