]> git.ipfire.org Git - thirdparty/make.git/commit
Fix for bug #1276: Handle SHELL according to POSIX requirements.
authorPaul Smith <psmith@gnu.org>
Sun, 28 Nov 2004 23:11:23 +0000 (23:11 +0000)
committerPaul Smith <psmith@gnu.org>
Sun, 28 Nov 2004 23:11:23 +0000 (23:11 +0000)
commit539f513773b2e651d987a7bdbdffd8b5164d58cf
tree7a692764273cc0892dbc715b6e095f63f93ea1e8
parentd27cac1598207e9bfc3ffb47c7e609360b83ca69
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