delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/09/26/13:11:47

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
From: kulack AT us DOT ibm DOT com
Importance: High
Subject: Re: Strange cd/CDPATH behavior
To: "Erik Nolte" <enolte AT campuspipeline DOT com>
Cc: <cygwin AT sourceware DOT cygnus DOT com>
X-Mailer: Lotus Notes Release 5.0.3 (Intl) 21 March 2000
Message-ID: <OFF5B2744E.E9A73F2E-ON86256966.005E7A5D@RCHLAND.IBM.COM>
Date: Tue, 26 Sep 2000 12:12:32 -0500
X-MIMETrack: Serialize by Router on d27ml103/27/M/IBM(Release 5.0.4 |June 8, 2000) at 09/26/2000
12:12:34 PM
MIME-Version: 1.0

> The obvious answer is to stop using DOS style paths with cygwin cd's.
> Unfortunately, what I'm really doing is "cd $SRC_PATH" where SRC_PATH is
> "W:/src".  SRC_PATH must be a DOS style path to keep javac and other
> windows-based software happy (they can't grok paths without drive
letters).

Use cygpath...
>cygpath -u -p c:/
/

In your example, something like:
cd $(cygpath -u -p $SRC_PATH)
would probably work.




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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