Mail Archives: djgpp-workers/1996/09/09/10:18:11
On Mon, 9 Sep 1996, Morten Welinder wrote:
> What if /bin/sh really exists? Should we use it then?
If you set SHELL=/bin/sh.exe in the environment or on the Make command
line, it *will* be used. I thought that setting a single environment
variable is simple enough so that it far outweighs the pains of editing
out the usual "SHELL=/bin/sh" line in Unix Makefiles.
The problem is even less serious than it might seem since (1) most
commands in a Makefile don't need to call `system' (they don't include
characters that `spawn' cannot handle), and (2) some DOSified Makefiles
include commands that only work with COMMAND.COM, so you should only use
a Unix-like shell when it's really needed.
However, if the above logic overlooks some important cases, please tell
me about them. Thanks.
- Raw text -