summaryrefslogtreecommitdiff
path: root/tests/scripts/variables/MAKELEVEL
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2004-11-28 23:11:23 +0000
committerPaul Smith <psmith@gnu.org>2004-11-28 23:11:23 +0000
commit539f513773b2e651d987a7bdbdffd8b5164d58cf (patch)
tree7a692764273cc0892dbc715b6e095f63f93ea1e8 /tests/scripts/variables/MAKELEVEL
parentd27cac1598207e9bfc3ffb47c7e609360b83ca69 (diff)
downloadgunmake-539f513773b2e651d987a7bdbdffd8b5164d58cf.tar.gz
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.
Diffstat (limited to 'tests/scripts/variables/MAKELEVEL')
-rw-r--r--tests/scripts/variables/MAKELEVEL3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/scripts/variables/MAKELEVEL b/tests/scripts/variables/MAKELEVEL
index 79a184e..96a4e74 100644
--- a/tests/scripts/variables/MAKELEVEL
+++ b/tests/scripts/variables/MAKELEVEL
@@ -1,4 +1,4 @@
-# -*-perl-mode-*-
+# -*-perl-*-
$description = "The following test creates a makefile to test
makelevels in Make. It prints \$(MAKELEVEL) and then
@@ -9,7 +9,6 @@ open(MAKEFILE,"> $makefile");
# The Contents of the MAKEFILE ...
print MAKEFILE <<EOF;
-SHELL = /bin/sh
all:
\t\@echo MAKELEVEL is \$(MAKELEVEL)
\techo \$\$MAKELEVEL