|
| From: | Martin Dorey |
| Subject: | [bug #59154] Multiline environment variables handled poorly |
| Date: | Tue, 22 Sep 2020 19:05:33 -0400 (EDT) |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36 |
Follow-up Comment #12, bug #59154 (project make):
[comment #10 comment #10:]
> If the variable is passed to a single shell then it will print an error at
the second "cd".
Eh?
martind@sirius:~/tmp/make-59154$ bash -c 'cd foo && echo one
cd foo && echo two'
one
two
martind@sirius:~/tmp/make-59154$
Oh, you meant if there wasn't a foo/foo/. I'm liking that easy way to pass a
multi-line script to a single shell without having .ONESHELL applied to
everything. Devil's advocacy aside, perhaps
https://www.gnu.org/software/make/manual/make.html#One-Shell would be the best
place to explain that variable expansion takes place before the splitting into
lines.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59154>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |