bugmake - Bugs: bug #15336, make: command line variables not...

 
 

bug #15336: make: command line variables not exported to $(shell)

Submitted by:  Manoj Srivastava <srivasta>
Submitted on:  Sat 31 Dec 2005 03:10:49 PM UTC  
 
Severity: 3 - NormalItem Group: None
Status: DuplicatePrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: NoneOperating System: None
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 03 Jan 2006 05:00:38 AM UTC, comment #1:

Duplicate of bug #10593

Paul D. Smith <psmith>
Project Administrator
Sat 31 Dec 2005 03:10:49 PM UTC, original submission:

This was reported by a debian user. While I am not sure this is a bug, this should perhaps be documented, if not.

manoj

'make' does not export command-line-derived variables to subshells launched via $(shell):

,----[ makefile ]
| all:
| @echo FOO is $$FOO,$(shell echo $(FOO)),$(shell echo $$FOO)
`----

If I run it with 'FOO=1 make', it prints:
,----
| FOO is 1,1,1
`----

...as I expected. But if I run it with 'make FOO=1' or 'make FOO:=1', it prints:

,----
| FOO is 1,1,
`----
which I certainly did not expect. Passing FOO separately from the environment and the command line, 'FOO=1 make FOO=2':

,----
| FOO is 2,2,1
`----
This might not be a bug, but I can't find it documentated.

Manoj Srivastava <srivasta>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 03 Jan 2006 05:00:38 AM UTCpsmithStatusNone=>Duplicate
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1