|
From: | anonymous |
Subject: | [bug #19626] Unexpected environment variable modification in command |
Date: | Wed, 18 Apr 2007 11:44:53 +0000 |
User-agent: | Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FR04/2004; .NET CLR 1.1.4322) |
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/
[Prev in Thread] | Current Thread | [Next in Thread] |