summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1999-07-16 02:25:03 +0000
committerPaul Smith <psmith@gnu.org>1999-07-16 02:25:03 +0000
commita3cf773e296968870eaa76d45323690d14d9b44e (patch)
tree81bdb5281ca81831c7dc268d903b4a28406df3d9 /variable.c
parent9d89ad56bf74b22471617ed99f9e6e6272efba22 (diff)
downloadgunmake-a3cf773e296968870eaa76d45323690d14d9b44e.tar.gz
* Various bug fixes.
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/variable.c b/variable.c
index 4537023..2d4fa4d 100644
--- a/variable.c
+++ b/variable.c
@@ -850,7 +850,7 @@ try_variable_definition (flocp, line, origin)
you have bash.exe installed as d:/unix/bash.exe, and d:/unix is on
your $PATH, then SHELL=/usr/local/bin/bash will have the effect of
defining SHELL to be "d:/unix/bash.exe". */
- if (origin == o_file
+ if ((origin == o_file || origin == o_override)
&& strcmp (expanded_name, "SHELL") == 0)
{
char shellpath[PATH_MAX];
@@ -918,7 +918,7 @@ try_variable_definition (flocp, line, origin)
else
#endif /* __MSDOS__ */
#ifdef WINDOWS32
- if (origin == o_file
+ if ((origin == o_file || origin == o_override)
&& strcmp (expanded_name, "SHELL") == 0) {
extern char* default_shell;