bugmake - Bugs: bug #35323, When the environment is modified...

 
 

bug #35323: When the environment is modified with export or undefine, $(shell ...) still inherits the original environment

Submitter:  Brian Vandenberg <phantal>
Submitted:  Tue 17 Jan 2012 09:00:02 PM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Duplicate Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  3.82 Operating System:  Any
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 02 Jan 2017 08:14:16 PM UTC, comment #1: 

This is a duplicate of bug #10593.  It turns out the problem is not completely trivial to fix: there are potential infinite recursion issues that need to be addressed.

Paul D. Smith <psmith>
Group administrator
Tue 17 Jan 2012 09:00:02 PM UTC, original submission:  

Example:


undefine LD_LIBRARY_PATH
$(warning $(shell echo "From $$(shell ...): $$LD_LIBRARY_PATH"))

all:
  @echo "From $@: $$LD_LIBRARY_PATH"



The $(warning ) will print the original LD_LIBRARY_PATH.

As you might expect, variations on this theme are no different; all of the following have identical results:

export undefine LD_LIBRARY_PATH

undefine LD_LIBRARY_PATH
export LD_LIBRARY_PATH

undefine LD_LIBRARY_PATH
export LD_LIBRARY_PATH:=

Brian Vandenberg <phantal>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  • -email is unavailable- added by phantal (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-01-02 psmith StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code