delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/08/24/05:45:14

Date: Tue, 24 Aug 1999 10:36:36 +0200
From: Laszlo Molnar <laszlo DOT molnar AT eth DOT ericsson DOT se>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Cc: "Paul D. Smith" <pausmith AT nortelnetworks DOT com>,
Esa A E Peuha <peuha AT cc DOT helsinki DOT fi>, djgpp-workers AT delorie DOT com
Subject: Re: Make 3.78 is in pretest (fwd)
Message-ID: <19990824103636.U14930@crater.eth.ericsson.se>
References: <14266 DOT 61356 DOT 636908 DOT 533905 AT baynetworks DOT com> <Pine DOT SUN DOT 3 DOT 91 DOT 990822103808 DOT 6405C-100000 AT is>
Mime-Version: 1.0
X-Mailer: Mutt 0.95.6i
In-Reply-To: <Pine.SUN.3.91.990822103808.6405C-100000@is>; from Eli Zaretskii on Sun, Aug 22, 1999 at 10:41:13AM +0300
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, Aug 22, 1999 at 10:41:13AM +0300, Eli Zaretskii wrote:
[..]
>       $p = $ENV{"PATH"};
>       $h = $ENV{"HOME"};
>       $u = $ENV{"PURIFYOPTIONS"};
>
>       # NT specific stuff
>       $pnt = $ENV{"Path"};
>       $sr  = $ENV{"SystemRoot"};
>
>       foreach $k (keys %ENV) { delete $ENV{$k}; }
>       %ENV = ( "HOME", $h, "PATH", $p, "Path", $pnt, "SystemRoot", $sr);
>
> First, if I leave the last line as shown, most of the tests fail, as
> far as I understand because PATH is either empty or undefined, so none
> of the programs invoked by the scripts and Makefile's are found.  If I
> replace the last line with this one:
>
>       %ENV = ( "HOME", $h, "PATH", $p);
>
> then everything works.  It seems like the value of $Path (which isn't
> defined on MSDOS) somehow causes $PATH to be emptied.  Laszlo, can it
> be that environment variables are compared case-insensitively
> somewhere in Perl?  If so, this is a bug.

Yeah, perl seems to add an strupr before setting an environment
variable (in an #ifdef MSDOS). There is a very old comment in the code
which says this is needed because some programs could break without it.
But I also think it's time to remove it. I'll submit a patch to the
perl5-porters.

Laszlo

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019