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

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: <37726760.73181765@mcc.com>
Date: Thu, 24 Jun 1999 12:14:08 -0500
From: Don Baker <dbaker AT mcc DOT com>
Organization: Microelectronics and Computer Technology Corporation (MCC)
X-Mailer: Mozilla 4.6 [en] (X11; I; SunOS 5.6 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT sourceware DOT cygnus DOT com
CC: dbaker AT mcc DOT com
Subject: Bug in B20.1 make with mixed case environment variables

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
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.)

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.)

Thanks for looking into this problem.

------------------------------------------------------------
Don Baker, Member of the Technical Staff
MCC, 3500 West Balcones Center Dr., Austin, Texas 78759-6509
dbaker AT mcc DOT com * Phone: (512) 338-3362 * Fax: (512) 338-3890

--
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