delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/05/21/00:54:37

X-Spam-Check-By: sourceware.org
Message-ID: <ba40711f0705202154q35e6abe9j3fde8ce3152ad8f0@mail.gmail.com>
Date: Mon, 21 May 2007 00:54:09 -0400
From: "Lev Bishop" <lev DOT bishop AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: How to uniformly point to the root of a drive?
In-Reply-To: <BAY125-F2749252DEF2EE7AD607940B5370@phx.gbl>
MIME-Version: 1.0
References: <20070520173616 DOT GA9531 AT ednor DOT casa DOT cgf DOT cx> <BAY125-F2749252DEF2EE7AD607940B5370 AT phx DOT gbl>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l4L4sPsW001588

On 5/20/07, Karl M  wrote:
> Hi All...
>
> >From: Christopher Faylor Subject: Re: How to uniformly point to the root of
> >a drive?
> >Date: Sun, 20 May 2007 13:36:16 -0400
> >
> >On Sun, May 20, 2007 at 01:27:05PM -0400, Christopher Faylor wrote:
> > >So it sounds like Brian's method would work then wouldn't it?
> >
> >Does this give you what you want, too?
> >
> >driveroot=$(cygpath $(cygpath -wm /)/..)
> >
> What is the difference between "cygpath -m ..." and "cygpath -wm ..."

That's easy: they're exactly the same.
Now for some tricky ones:
1)what does: "cygpath  -lpw '/bin/nonexistant:/usr/bin'" do?
2)what's the difference between "cygpath -m ..." and "cygpath -t mixed ..."?
3)what's the difference between:
"cygpath -uuuu  -t mixed -t mixed -t unix -t mixed -mmm  ..."
and "cygpath -m ..."







Answers follow:



Answers
1)
$ cygpath  -lpw '/bin/nonexistant:/usr/bin'
÷;C:\cygwin\bin
^ That's a divided-by symbol there. Some lack of error checking
somewhere, I suppose.

2)
$ cygpath -t mixed  .. && cygpath -t mixed  -D
C:/cygwin/home/
/cygdrive/c/Documents and Settings/Lev/Desktop

$ cygpath -m .. && cygpath -m -D
C:/cygwin/home/
C:/Documents and Settings/Lev/Desktop

Ie, they're the same for usual paths, but '-t mixed' gives a unix path
for the "system information" options

3) none

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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