Fix for bug #1276: Handle SHELL according to POSIX requirements.
commitbc27433f0f7bb215107f38f8c47cd7da93854d47
authorpsmith <psmith>
Sun, 28 Nov 2004 23:11:23 +0000 (28 23:11 +0000)
committerpsmith <psmith>
Sun, 28 Nov 2004 23:11:23 +0000 (28 23:11 +0000)
tree8191bf85092f2ef9917e6f52c3c2b39e28ad8114
parent385c59ccc0ed85f992bcf4d0c6fab9a7cafe4fdd
Fix for bug #1276: Handle SHELL according to POSIX requirements.

POSIX requires that the value of SHELL in the makefile NOT be exported
to sub-commands.  Instead, the value in the environment when make was
invoked should be passed to the environment of sub-commands.  Note that
make still uses SHELL to _run_ sub-commands; it just doesn't change the
value of the SHELL variable in the environment of sub-commands.

As an extension to POSIX, if the makefile explicitly exports SHELL then
GNU make _will_ use it in the environment of sub-commands.
ChangeLog
doc/make.texi
main.c
make.h
tests/ChangeLog
tests/scripts/variables/MAKELEVEL
tests/scripts/variables/SHELL [new file with mode: 0644]
variable.c