delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/09/16/16:46:07

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Thorsten Kampe <thorsten AT thorstenkampe DOT de>
Subject: Re: cygdrive prefix
Date: Wed, 16 Sep 2009 22:45:33 +0200
Lines: 33
Message-ID: <h8ripc$itl$1@ger.gmane.org>
References: <ee47a1dc39b42cb6fdd0c2dff9ff3053 AT mail DOT smartmobili DOT com> <h8r26b$peb$1 AT ger DOT gmane DOT org> <182640b4a6730dafadd266e0cfc9d9bf AT mail DOT smartmobili DOT com>
Mime-Version: 1.0
User-Agent: MicroPlanet-Gravity/2.9.12
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

* Vincent R. (Wed, 16 Sep 2009 18:08:59 +0200)
> 
> On Wed, 16 Sep 2009 09:02:19 -0700, Andrew DeFaria <Andrew AT DeFaria DOT com>
> wrote:
> > Vincent R. wrote:
> >> Hi,
> >>
> >> Is there any good reason to force user to use /cygdrive/ before 
> >> accessing a drive ?
> > Considering you aren't forced to use /cygdrive/ (see mount(1m)) no...
> >> I am asking it because I regularly switch from cygwin to mingw and 
> >> some simple script needs to be adapted every time.
> > Huh? Can't your script sense you're using Cygwin or Mingw?
> >> Wouldn't be easier to access directly to a drive without entering 
> >> cygdrive? Is there any reason for that ?
> > What would be your proposal for a POSIX path to indicate you are now 
> > accessing a Windows drive by letter? "/cygdrive/" is just a string 
> > indicating this. You can change it with mount(1m). Personally I (ab)use 
> > /dev...
> 
> Ok I see your point but I find it weird to complicate things by adding
> /cygdrive.

It's not complicating things. To the contrary: it's simplifying. Right 
now the structure in / is a neat subset of a Unix / root. If you had all 
these a, b, c, d, e, k, z folders in between (not to mention any network 
drives) that would look a whole lot less good.

It's more or less the same reason why you shouldn't install Cygwin 
directly to C:\ (but to C:\cygwin): so you don't have the Cygwin and the 
Windows root folder structure mixed.

Thorsten


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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