bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

environment variables only in uppercase


From: Randy Maddox
Subject: environment variables only in uppercase
Date: Wed, 21 Nov 2001 15:32:59 -0500

Hello,

I am experiencing what appears to be a possible bug in the make utility.  I
am running DJGPP for WinDoze 2K and make will only obtain the value of an
environment variable if the name used in the make file is all caps, i.e.,
$(ENVVARIABLE), regardless of the case of the name as actually set for the
environment variable.

I am using the following version of make:

>make --version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i386-pc-msdosdjgpp
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
        Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to <address@hidden>.

The following make file demonstrates the problem if run after setting
EnvVariable to some_value so that a display of environment variables using
the set command shows:  EnvVariable=some_value

# sample make file

all:
        @echo EnvVariable = $(EnvVariable)
        @echo ENVVARIABLE = $(ENVVARIABLE)

#end of this file

The output from running make against this make file generates the following
output on my machine:

>make all
EnvVariable =
ENVVARIABLE = some_value

I have never encountered this issue with any previous version of make on
this or any other platform, and so was quite surprised.  Is this a bug?

Thanks.

Randy Maddox
C++ Author, Architect, Developer
703-883-8088 ext. 119 (8 am to 4:30 pm Eastern USA time)
address@hidden

<<attachment: winmail.dat>>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]