delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/06/24/13:43:56

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <19990624173854.10224.rocketmail@web110.yahoomail.com>
Date: Thu, 24 Jun 1999 10:38:54 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: earnie_boyd AT yahoo DOT com
Subject: Re: Bug in B20.1 make with mixed case environment variables
To: Don Baker <dbaker AT mcc DOT com>, cygwin AT sourceware DOT cygnus DOT com
Cc: dbaker AT mcc DOT com
MIME-Version: 1.0

--- Don Baker <dbaker AT mcc DOT com> wrote:
> B20.1 uses GNU make 3.75 which seems to have a bug or mis-feature
> where (DOS) environment variable names are converted to upper case
> when made into makefile variables.  (I believe that GNU make 3.77

This is not a "mis-feature" of make but a feature of the cygwin1.dll when
converting from DOS to POSIX.

> fixes this problem, so upgrading may be all that's necessary. 
> Unfortunately, I don't know the exact lineage of the make 3.77
> that I have.)
> 

Not likely as it isn't make's problem.

> From a DOS shell, set an environment variable with lower case
> letters:
> 
> set foo=hello
> 
> Then run make on the following makefile:
> 
> all:
> 	echo $(foo)
> 
> The echo is empty, unless the makefile variable is changed
> to all upper case, where "hello" is printed.  This problem
> does not seem to occur if the environment variable is set
> in bash.  (Bash, however has all of the DOS environement
> variables converted to upper case.)
> 

If you wish to keep the lower case then

DOS> bash
$ export foo=bar
$ make

> Thanks for looking into this problem.

You're welcome.
===
Earnie Boyd <mailto:earnie_boyd AT yahoo DOT com>

Newbies, please visit
<http://www.freeyellow.com/members5/gw32/index.html>

(If you respond to the list, then please don't cc me)
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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