On Thu, Nov 15, 2001 at 07:00:13PM -0800, Craig Hackney wrote:
>
>       There appears to be a problem with this version of make please
>       see below.

Thanks for the analysis.

The patch below should fix this, right?

cgf

2001-11-15  Christopher Faylor  <[EMAIL PROTECTED]>

        * main.c (main): Invert sense of test to ensure that unixy_shell is set
        to zero if MAKE_MODE is not set to UNIX.

Index: main.c
===================================================================
RCS file: /cvs/cvsfiles/devo/make/main.c,v
retrieving revision 1.47
diff -u -p -r1.47 main.c
--- main.c      2001/06/26 19:12:04     1.47
+++ main.c      2001/11/16 03:20:03
@@ -870,11 +870,10 @@ int main (int argc, char ** argv)
     char *make_mode_env;
 
     /* Read the environment variable MAKE_MODE */
-    /* If it's "UNIX", set unixy_shell to 1.  If it's "WIN32" or
-       anything else, stay with the default of 0. */
+    /* If it's not "UNIX", set unixy_shell to 0. */
     make_mode_env = getenv ("MAKE_MODE");
-    if (make_mode_env && strcaseequ (make_mode_env, "UNIX"))
-      unixy_shell = 1;
+    if (make_mode_env && !strcaseequ (make_mode_env, "UNIX"))
+      unixy_shell = 0;
   }
 #endif /* __CYGWIN__ */

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to