delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/21/23:20:59

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 21 Feb 2001 23:18:45 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: sh.exe: Command not found
Message-ID: <20010221231845.A9086@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20010221223819 DOT A8880 AT redhat DOT com> <Pine DOT BSF DOT 4 DOT 21 DOT 0102212013200 DOT 12514-100000 AT beacon DOT synthcom DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <Pine.BSF.4.21.0102212013200.12514-100000@beacon.synthcom.com>; from neil@synthcom.com on Wed, Feb 21, 2001 at 08:17:07PM -0800

On Wed, Feb 21, 2001 at 08:17:07PM -0800, Neil Bradley wrote:
>> >> >gmake[1]: Leaving directory `/cygdrive/d/work'
>> >> >gmake: *** [Boot\\boot.lib] Error 2
>> >> Why not use the version of make that comes with Cygwin?
>> >It is, actually. I change it to "gmake" so it doesn't conflict with
>> >another project that uses "make", and they need to coexist on the same
>> >system.
>> Well, you have both renamed it and moved it to a nonstandard location.
>
>Correct. Does renaming it actually harm things? I'd rather not have to
>require >30 developers to install the entire cygwin package - we're trying
>to keep it easily movable from one machine to another.

Ok.  But that puts a certain burden on you to support it, then.  It's
difficult to provide help for people who have renamed things and moved
them around to non-standard locations.

>> I wonder if that is your problem.  Usually sh.exe is expected to be in
>> the standard /bin location.  Does /bin/sh.exe exist?
>
>It doesn't. Is /bin something that should be created and stored on
>whatever drive it's in? It'd be nice if I could set some environment
>variable that would point it to the proper location. 

Mumit has clarified things in this regard.  I'd forgotten that make would
look for sh.exe in the path.  I don't know why this isn't working for
you.  Possibly setting the SHELL environment variable or passing a SHELL=
command line argument will work, as Mumit suggested.

>But strangely, why would a invocation of a command that uses quotes cause
>a different behavior than that of a compile?

I believe that when make sees shell metacharacters, like quotes, it invokes
/bin/sh (or whatever) to invoke the command.  Otherwise it just uses
exec.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019