delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/05/20/16:58:37

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
From: "Jon Beniston" <jon AT beniston DOT com>
To: <cygwin AT cygwin DOT com>
Subject: bash pwd returning windows style paths
Date: Thu, 20 May 2010 21:58:02 +0100
Message-ID: <005101caf85f$22c11060$68433120$@beniston.com>
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,

I'm trying to get the linuxtools Eclipse autoconf plugin to work on Cygwin.
One problem I'm having is that a configure script (from newlib) is calling
pwd which is returning a Windows style path (e.g. c:/something), which
causes it to fail. This appears to be because Eclipse is setting the
environment variable PWD to a Windows style path. This can be reproduced
with:

PWD=c:/cygwin/ sh
$ pwd
c:/cygwin/

I'm just wondering what would be the recommended way to tackle this:

1. Change Eclipse so it sets PWD to a Cygwin style path. 
2. Patch the bash pwd builtin so it doesn't return Windows paths. 
3. Change the configure script so it uses /usr/bin/pwd instead of the
builtin (which returns the Cygwin style path).
4. Something else? 

Any thoughts would be appreciated.

Cheers,
Jon




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

- Raw text -


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