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/


Reply via email to