bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #52912] minor bug in GNU make's own Makefile under .ONESHELL


From: David Boyce
Subject: [bug #52912] minor bug in GNU make's own Makefile under .ONESHELL
Date: Tue, 16 Jan 2018 10:58:13 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36

Follow-up Comment #2, bug #52912 (project make):

Hmm. When you say "I think that your use-case is going to cause lots of other
problems", I'm not sure whether you're referring to the make build model per
se or the greater universe of makefiles. I'm aware that .ONESHELL has certain
pitfalls in the greater universe (I contributed the feature originally, after
all :-) but this is the only problem it causes in making make, at least on
Linux.

And wrt "convince make that your shell IS a POSIX shell (if indeed it is)":
"my shell" is just a wrapper which accepts the usual -c, -e, -x flags, adds
its own value, and passes the command string along to /bin/sh. So yes it's a
POSIX shell in all but name but I don't think renaming it "bash" or "dash"
would be appropriate.

Since .ONESHELL currently has no defined prerequisites, possibly they could be
used to extend the set of POSIX shells? E.g.

# make --eval=".ONESHELL:<myshell>" SHELL=<myshell> 

This isn't a real problem for me, I just thought I'd report it. No complaint
if it has to be closed as unfixable.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52912>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]