delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/15/15:58:20

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
Date: Tue, 15 Oct 2002 15:59:33 -0400
From: Christopher Faylor <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: paths like //usr/local
Message-ID: <20021015195933.GB14116@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <aohos4$hn8$1 AT main DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 44 DOT 0210151546090 DOT 18519-100000 AT slinky DOT cs DOT nyu DOT edu>
Mime-Version: 1.0
In-Reply-To: <Pine.GSO.4.44.0210151546090.18519-100000@slinky.cs.nyu.edu>
User-Agent: Mutt/1.4i

On Tue, Oct 15, 2002 at 03:51:19PM -0400, Igor Pechtchanski wrote:
>On Tue, 15 Oct 2002, [ISO-8859-1] Sven Köhler wrote:
>
>> >>a path like //usr/local is treated as an UNC path.
>> >>this might leads to problems when an application is using //usr/local as
>> >>a normal "unix"-path.
>> >>
>> >>i don't know how to overcome the problem, but one might think of a path
>> >>like /unc/computer/share instead of using the path //computer/share
>> >>
>> >>what was the idea behind the current behaviour?
>> >
>> > Do you think that Microsoft employees read this mailing list?  I'm sure
>> > that there are one or two but I doubt that they could speak definitively
>> > about why Microsoft chose this behavior.
>>
>> cygwin translates paths like /usr/local to c:\cygwin\usr\local and
>> manages mount-points etc...
>> cygwin opffers a complete "virtual filesystem"
>>
>> the cygwin-developers chose, to NOT convert //usr/local to
>> c:\cygwin\usr\local
>>
>> i would like to know why.
>
>Sven,
>Basically your complaint is inconsistent behavior of multiple contiguous
>slashes depending on where they occur in the path (i.e., the initial two
>slashes won't be collapsed, but elsewhere in the path they will be).
>Perhaps something like a unc_prefix is in order, similar to the cygdrive
>prefix?
>"Patches gratefully accepted" (C).  Oops, sorry, I guess it's "Donations
>gleefully accepted" now... :-D

Not in this case.  There is no way that I'm going to change long-standing
behavior in cygwin.

To quote from the Single Unix Specification v3:

"A pathname consisting of a single slash shall resolve to the root
directory of the process.  A null pathname shall not be successfully
resolved.  A pathname that begins with two successive slashes may be
interpreted in an implementation-defined manner, although more than two
leading slashes shall be treated as a single slash."

--
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