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

Submitted by:  Brian Vandenberg <phantal>
Submitted on:  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

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

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