[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #10593] $(shell) doesn't honor export but this is undocumented?
From: |
Brian Vandenberg |
Subject: |
[bug #10593] $(shell) doesn't honor export but this is undocumented? |
Date: |
Tue, 10 May 2016 13:05:03 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; Win64; x64; Trident/7.0; rv:11.0) like Gecko |
Follow-up Comment #2, bug #10593 (project make):
This has the potential to create a backward compatibility problem if it were
fixed. Currently someone could take advantage of the fact that "export" does
not export to $(shell) environments and "fixing" this would alter that
behavior.
As an alternative I think it would be better to add a new macro function for
exporting:
$ cat <<'EOF' | env TEST=stuff gmake -f -
$(warning ${TEST})
$(warning echo $${TEST})
export TEST := blah
$(warning echo $${TEST})
$(export TEST)
$(warning echo $${TEST})
$(export TEST,something else)
$(warning echo $${TEST})
EOF
/tmp/Gmp3tNks:1: stuff
/tmp/Gmp3tNks:2: stuff
/tmp/Gmp3tNks:4: stuff
/tmp/Gmp3tNks:6: blah
/tmp/Gmp3tNks:8: something else
make: *** No targets. Stop.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?10593>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/