From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28967 invoked by alias); 16 Nov 2001 03:00:50 -0000 Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sources.redhat.com Received: (qmail 28895 invoked from network); 16 Nov 2001 03:00:40 -0000 Received: from unknown (HELO SUGAH2.triscend.com) (63.87.30.34) by sourceware.cygnus.com with SMTP; 16 Nov 2001 03:00:40 -0000 Received: by SUGAH2.triscend.com with Internet Mail Service (5.5.2653.19) id ; Thu, 15 Nov 2001 19:00:14 -0800 Message-ID: <2407239113CD914CBA855A47698F01B06220FA@SUGAH2.triscend.com> From: Craig Hackney To: "'cygwin@cygwin.com'" Subject: make 3.79.1-4 'make: /bin/sh.exe: Command not found' when running without sh.exe Date: Sun, 11 Nov 2001 08:26:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2001-11/txt/msg00387.txt.bz2 There appears to be a problem with this version of make please see below. The ChangeLog.Cygnus file contains information on a change that causes an error if sh.exe is not in /bin when make is run. --------- * main.c (main): Avoid setting no_default_sh_exe to 0 in all cases. Default to /bin/sh.exe on Cygwin. Lookup COMSPEC for --win32. --------- The default shell is set to a unix style shell, ie. /bin/sh, main.c contains code that checks the MAKE_MODE environment variable see below.. --------- /* 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. */ make_mode_env = getenv ("MAKE_MODE"); if (make_mode_env && strcaseequ (make_mode_env, "UNIX")) unixy_shell = 1; --------- The above code checks to see if the MAKE_MODE is 'unix' and, if it is sets unixy_shell (which is already set since the default shell is now /bin/sh). Any other setting, i.e. WIN32, will use the default, which is a unix shell. So make is looking for /bin/sh even when MAKE_MODE is set to WIN32, the only workaround is to specify --win32 as a command line option to make. -- 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/