delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/11/11:19:44

X-Spam-Check-By: sourceware.org
Date: Tue, 11 Apr 2006 11:19:20 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: RE: ($shell cd) result different if including cygwin/bin directory in path
In-Reply-To: <003301c65d76$c65aa070$a501a8c0@CAM.ARTIMI.COM>
Message-ID: <Pine.GSO.4.63.0604111115060.18720@access1.cims.nyu.edu>
References: <003301c65d76$c65aa070$a501a8c0 AT CAM DOT ARTIMI DOT COM>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Tue, 11 Apr 2006, Dave Korn wrote:

> On 11 April 2006 15:26, Omar BELKHODJA wrote:
>
> > Sorry Dave, but I don't understand which command you are talking about.
> > Are  talking about 'cd' ? I don't see any 'cd' command in the cygwin/bin
> > directory. If there was a 'cd' comand in the cygwin/bin directory, when
> > I type 'cd' directly from the DOS command prompt, I should have the same
> > empty string that I have from the ($shell cd), but this is not the case.
>
>   Oh, of course, it's a builtin in both.  Doh!  It's the 'sh' executable that
> is getting in the way, not 'cd' at all.  Make looks for 'sh' in order to run
> the ($shell ...) command.
>
>   1)  Do you have SHELL set in your environment vars?
>   2)  Are you using a version of make that understands the MAKE_MODE
> variable or the --win32 and --unix flags?

If the Makefile does a recursive make (using $(MAKE)), and your gmake
doesn't set $(MAKE) properly (i.e., it's set to "make"), then there's a
chance that the recursive invocation is picking up Cygwin's make.  You
could set MAKE=gmake explicitly, or indeed set MAKE_MODE=win32 to make
Cygwin make behave the same as the Win32 version...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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