Follow-up Comment #14, bug #59154 (project make):

[comment #10 comment #10:]
> GNU makefiles will allow the following makefile:
> 
> 
> define SOMECOMMAND
> cd foo && echo one
> cd foo && echo two
> endef
> 
> all: ; $(SOMECOMMAND)
> 
> 
> to print both "one" and "two" when there is a subdirectory "foo" which is
empty.
> 
> If the variable is passed to a single shell then it will print an error at
the second "cd".

Thanks for the example!  I looked briefly in tests/, but didn't immediately
see a regression test that verifies this behavior.  I imagine there is one.  
Anyway, so the task for the intrepid complainer would be to
support the BSD usage while not breaking the usage described
above.  If that's impossible, well, that's that.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59154>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/


Reply via email to