delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/24/01:50:45

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
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 <rrschulz AT cris DOT com>
Subject: Re: cygpath question
In-Reply-To: <5.2.0.9.2.20030123222211.02c0ac18@pop3.cris.com>
References: <DDEDIPLLKIAMLBCBFCHEEEJACDAA DOT relaxedrob AT optushome DOT com DOT au>
Mime-Version: 1.0

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/

- Raw text -


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