From a3cf773e296968870eaa76d45323690d14d9b44e Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Fri, 16 Jul 1999 02:25:03 +0000 Subject: * Various bug fixes. --- variable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'variable.c') 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; -- cgit v1.2.3