Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-Id: <5.2.0.9.2.20030123224821.02dfc4a0@pop3.cris.com> X-Sender: rrschulz AT pop3 DOT cris DOT com Date: Thu, 23 Jan 2003 22:51:33 -0800 To: cygwin AT cygwin DOT com From: Randall R Schulz Subject: Re: cygpath question In-Reply-To: <5.2.0.9.2.20030123222211.02c0ac18@pop3.cris.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Robert, I need to make a slight amendment to what I wrote before. Please see below. At 22:33 2003-01-23, Randall R Schulz wrote: >... > > >> $ pwd >> / >> >> $ cdd C:\My Music > >Here's what happens: > >cd "`cygpath --unix "C:My Music"`" > >I'm guessing your Cygwin root is the same as your C: drive root, so in >this case you more or less incidentally get the result you want >because your current directory was "/" (Cygwin) and "C:/" (Windows). I should have tried an experiment. The current directory doesn't matter (nor, in that case, does the relationship between your Cygwin root and any particular Windows directory). These two are identical: cd "$(cygpath --unix "D:Documents and Settings")" cd "$(cygpath --unix "D:\Documents and Settings")" (I prefer the $( ... ) syntax to the `...` syntax.) Randall Schulz -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/