www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/05/25/05:07:34

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <3948f0730805250207sbe2860bhc8648946cdc7c1ca@mail.gmail.com>
Date: Sun, 25 May 2008 12:07:10 +0300
From: "Gadi Oron" <gadior AT gmail DOT com>
To: dave DOT korn AT artimi DOT com, cygwin AT cygwin DOT com
Subject: RE: make fails to change directory.
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Hi Dave,

I made some more tests and I've found the root cause: in fact

/bin/sh -c "cd <directory>"

will not work for a directory in $pwd unless it has a leading "./"

Only bash - when disguised as sh - has this issue, ash for example
does not behave like this.

Do you have an idea how to bypass this?

Ciao and thanks

--
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