This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: How to uniformly point to the root of a drive?
On Sun, May 20, 2007 at 09:12:47PM -0700, Karl M wrote:
>Hi Christopher...
>
>>From: Christopher Faylor Subject: Re: How to uniformly point to the root
>>of a drive?
>>Date: Sun, 20 May 2007 21:21:59 -0400
>>
>>On Sun, May 20, 2007 at 05:39:21PM -0700, 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 ..."
>>
>>Come on! Read the fine manual.
>>
>It is indeed a fine manual. I did look and -w and -m look to be mutually
>exclusive in thier use, but I did find scripts that use -wm, thus my
>question.
So, translation: cgf made a typo. The 'w' is not needed.
cgf
--
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/