delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/16/17:47:47

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Tue, 16 Aug 2005 17:47:27 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
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: <Pine.GSO.4.61.0508161742540.9560@slinky.cs.nyu.edu>
References: <42FA4604 DOT 8000507 AT tlinx DOT org> <20050810183616 DOT GA5892 AT trixie DOT casa DOT cgf DOT cx> <Pine DOT GSO DOT 4 DOT 61 DOT 0508152130380 DOT 9560 AT slinky DOT cs DOT nyu DOT edu> <1124222681 DOT 29974 DOT 37 DOT camel AT p450> <Pine DOT GSO DOT 4 DOT 61 DOT 0508161649420 DOT 9560 AT slinky DOT cs DOT nyu DOT edu> <20050816212826 DOT GG16323 AT trixie DOT casa DOT cgf DOT cx>
MIME-Version: 1.0

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 <http://cygwin.com/ml/cygwin/2005-08/msg00679.html>).  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/

- Raw text -


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