[bug #59154] Multiline environment variables handled poorly

2020-09-21 Thread anonymous
Follow-up Comment #3, bug #59154 (project make): Since, IN THIS CASE, the value should really only be processed once, isn't the solution to defer the expansion to the shell by using echo PUB is "$${PUB}" as the recipe? ___ Reply

[bug #59154] Multiline environment variables handled poorly

2020-09-21 Thread Paul D. Smith
Follow-up Comment #2, bug #59154 (project make): This is done on purpose. Newlines in variable expansions are treated as real newlines in the rule. If they weren't, then multiline definitions would not work at all: define MYRULE echo hello echo world endef all: ; $(MYRULE) I suppose there

[bug #59154] Multiline environment variables handled poorly

2020-09-21 Thread Martin Dorey
Follow-up Comment #1, bug #59154 (project make): I thought this might be related to https://en.wikipedia.org/wiki/Shellshock_(software_bug) but make is exec()ing the wrong command: martind@sirius:~/tmp/make-59154$ export PUB="$(echo hello; echo world)" martind@sirius:~/tmp/make-59154$ cat

[bug #59154] Multiline environment variables handled poorly

2020-09-21 Thread Dan Kegel
URL: Summary: Multiline environment variables handled poorly Project: make Submitted by: dankegel Submitted on: Mon 21 Sep 2020 02:58:39 PM UTC Severity: 3 - Normal