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 Date: Tue, 16 Aug 2005 17:47:27 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Re: Programatically finding value of "cygdrive" prefix In-Reply-To: <20050816212826.GG16323@trixie.casa.cgf.cx> Message-ID: References: <42FA4604 DOT 8000507 AT tlinx DOT org> <20050810183616 DOT GA5892 AT trixie DOT casa DOT cgf DOT cx> <1124222681 DOT 29974 DOT 37 DOT camel AT p450> <20050816212826 DOT GG16323 AT trixie DOT casa DOT cgf DOT cx> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 16 Aug 2005, Christopher Faylor wrote: > On Tue, Aug 16, 2005 at 05:10:25PM -0400, Igor Pechtchanski wrote: > >There may not be a C: drive, but "cygpath -u c:" will do the right thing > >-- try it with a drive you don't have. > > mount -f c: /willthisthreadeverdie > cygpath -u c: > /willthisthreadeverdie Yes, yes, I'm aware that if you explicitly mount a drive, you'll have that mount point instead of /cygdrive (that's what I meant by "special mounts" in ). I was making a point that even if the drive doesn't exist, cygpath will convert it to a /cygdrive form, e.g., $ mount -c /idontthinkitwilleverdie $ ls q: ls: q:: No such file or directory $ cygpath -u q: /idontthinkitwilleverdie/q Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. /DA -- 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/