delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/28/16:22:34

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Soren A <soren_andersen AT fastmail DOT fm>
Subject: Re: Save typing /cygdrive/c?
Date: Tue, 28 Jan 2003 21:19:46 +0000 (UTC)
Organization: Occasionally Sporadically
Lines: 35
Message-ID: <Xns9311A668D6B3Csoren1Gmane@80.91.224.249>
References: <34385CBC5E8E664EB0007814636AB36A677AD2 AT exchange1 DOT dimensions DOT com> <00a801c2c640$38e62a50$78d96f83 AT pomello> <00b901c2c642$0dd550a0$a50aa8c0 AT adexainc DOT com> <000701c2c643$25729550$78d96f83 AT pomello>
X-Complaints-To: usenet AT main DOT gmane DOT org
User-Agent: Xnews/L5
X-Archive: encrypt

"Max Bowsher" <maxb AT ukf DOT net> wrote around 27 Jan 2003
news:000701c2c643$25729550$78d96f83 AT pomello: 

> Rob Siklos wrote:
>> running "mount --change-cygdrive-prefix /" will make all your drives
>> be subdirectories of "/" instead of "/cygdrive".

> And then when you run some script which expects /cygdrive, it will
> break. OK, the script is what is broken, but the path of least
> resistance is to use symlinks instead.

Such a script would indeed be broken, and if I found such a one on my
system I'd delete it immediately, no matter how important it thinks
itself to be. 

I get the point about path of least resistance but won't go along with
it in this case. Cygwin has never fetish-ized (fixed as canonical,
forced) the "cygdrive" string, TTBOMK, and I hope it doesn't become so.
I myself use the much shorter string "cdv" (as in "/cdv/e/stuff") which is
mnemonic with "cYGdRIVEvOLUME".

I even wrote a Java class to query Cygwin for this information in order
to use the Sun JDK Java rt product with Cygwin's shell environment.
IMHO, correct programming (of all sorts) for Cygwin should always be
using programmatical (documented API) means of composing path strings,
not hard-coding (ASSuming) a particular path prefix to the drive
volumes. 

   Not In The Least Opionatedly Yours,
     Soren A

-- 
"So, tell me, my little one-eyed one, on what poor, pitiful,
defenseless planet has my MONSTROSITY been unleashed?"
                       - Dr. Jumba, Disney's "Lilo & Stitch"


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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