www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/06/07/16:17:10

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Mon, 7 Jun 1999 16:17:35 -0400
To: "Thomas, Mike" <mthomas AT cabletron DOT com>
Cc: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: Environment Variables
Message-ID: <19990607161735.A763@cygnus.com>
References: <0F9F4B0DB88BD21182C20008C70922EADEF9C8 AT corp-exc5 DOT ctron DOT com>
Mime-Version: 1.0
X-Mailer: Mutt 0.95.3i
In-Reply-To: <0F9F4B0DB88BD21182C20008C70922EADEF9C8@corp-exc5.ctron.com>; from Thomas, Mike on Mon, Jun 07, 1999 at 04:01:30PM -0400

Ok.  You finally forced me to check the code.

Environment variables are uppercased in the first invocation of
a cygwin process but subsequent children of that process do not
do this.  So, if you've used mixed case in environment variables prior
to running BASH the mixed case will not show up in "env" output:

c:\>set cArol=This is Carol
c:\>bash
bash-2.02$ env | grep cArol
bash-2.02$ export Bobby="This is Bobby"
bash-2.02$ env | grep "Bobby"
Bobby=This is Bobby

As far as suggesting something; this is open source.  If you would like
to submit a patch please feel free to do so.  Otherwise, I have no plans
on scheduling time to implement this behavior.

cgf

On Mon, Jun 07, 1999 at 04:01:30PM -0400, Thomas, Mike wrote:
>Ok it is still the same as in b18, this breaks us, we rely on environment
>variables to remain in the case they began in.
>
>Is this something we can suggest in some way to be added in a future rev?
>
>Mike
>
>PS I've been on this mailing list and quite since just after b18 :)
>   Mainly because we are still using a heavily modified b18, mostly bug
>  fixes that have been addressed in b20, except the environment..
>
>-----Original Message-----
>From: Chris Faylor [mailto:cgf AT cygnus DOT com]
>Sent: Monday, June 07, 1999 1:19 PM
>To: Thomas, Mike
>Cc: cygwin-developers AT sourceware DOT cygnus DOT com
>Subject: Re: Environment Variables
>
>On Mon, Jun 07, 1999 at 01:08:42PM -0400, Thomas, Mike wrote:
>>I have a quick question...  In b18 environment variables were being changed
>>to uppercase before a executing a new process.  In b20 is this still the
>>case?  If so is there a mechinisim by which we can change this to not alter
>>the environment Maybe a registry entry?
>
>I don't know the answer off the top of my head.  The actual code
>involved is is in environ.cc.  I'd suggest that you look there and write
>some simple test cases to supply your own answer.

- Raw text -


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