How to uniformly point to the root of a drive?
Mon May 21 12:52:00 GMT 2007
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 ..."
$ cygpath -lpw '/bin/nonexistant:/usr/bin'
^ That's a divided-by symbol there. Some lack of error checking
somewhere, I suppose.
$ cygpath -t mixed .. && cygpath -t mixed -D
/cygdrive/c/Documents and Settings/Lev/Desktop
$ cygpath -m .. && cygpath -m -D
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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin