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" To: 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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