URL:
<http://savannah.gnu.org/bugs/?19626>
Summary: Unexpected environment variable modification in
command
Project: make
Submitted by: None
Submitted on: mercredi 18.04.2007 à 11:44 UTC
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: 3.80
Operating System: Any
Fixed Release: None
_______________________________________________________
Details:
When running following Makefile with GNU make 3.80 on Cygwin/Solaris/Linux it
outputs value of the Make variable instead of environment variable in case an
environment variable of the same name than Make variable exists.
[~]$ cat Makefile
IN_ENV = from_make
NOT_IN_ENV = from_make
all:
echo $${IN_ENV}
echo $${NOT_IN_ENV}
[~]$ make
echo ${IN_ENV}
echo ${NOT_IN_ENV}
=> that's OK
[~]$ export IN_ENV=from_env
[~]$ make
echo ${IN_ENV}
from_make
echo ${NOT_IN_ENV}
=> As variables are not exported I expect getting:
echo ${IN_ENV}
from_env
echo ${NOT_IN_ENV}
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?19626>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-make