delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/05/27/21:59:33

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Sat, 27 May 2000 21:59:18 -0400
To: "'cygwin-developers AT sourceware DOT cygnus DOT com'" <cygwin-developers AT sourceware DOT cygnus DOT com>
Subject: Re: Possible path processing change
Message-ID: <20000527215918.A28396@cygnus.com>
Reply-To: cygwin-developers AT sourceware DOT cygnus DOT com
Mail-Followup-To: "'cygwin-developers AT sourceware DOT cygnus DOT com'" <cygwin-developers AT sourceware DOT cygnus DOT com>
References: <200005262251 DOT PAA14952 AT cygnus DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2i
In-Reply-To: <200005262251.PAA14952@cygnus.com>; from rdparker@butlermfg.com on Fri, May 26, 2000 at 05:47:19PM -0500

On Fri, May 26, 2000 at 05:47:19PM -0500, Parker, Ron wrote:
>This originally started as an idea for fixing some of the differences
>between how UNIX and cygwin handle paths.
>
>Currently cygwin recognizes both /cygdrive/<drive-letter> and
>//<drive-letter> as paths for unmounted drives.  Additionally it recognizes
>//server/share as a UNC path.  This leads to two problems.  The first is
>that //<drive-letter>/directory can be ambiguous.  The second is that
>scripts and programs which build paths beginning with two slashes do not
>resolve to absolute paths under cygwin as they do in UNIX.
>
>This lead to a few ideas:
>* Remove support for //<drive-letter>
>* Replace //server/share with server:share
>* Replace //*path with /path
>
>This would get rid of the ambiguity of double-slashed paths and allow cygwin
>to handle sloppy programs that try to access //path, ///path and similar
>things.
>
>Chris has already requested the //server/share stay in place because of a
>number of scripts that he has.  Prior to his request I thought these changes
>might speed up path conversion.  Now I am not sure.
>
>Would any of these things be worth doing?
>
>If there is no //server/share should we try parsing it as /directory/...?

I posted my thoughts on this in the cygwin mailing list but I didn't
discuss parsing //something/share as /something.  I think that this may
be a good idea but I wonder if we should issue a warning.  I normally
don't like having cygwin be wordy but in this case the performance hit
is so noticeable that people would want to clear this up if necessary.

A flip side of this might be to check for the directory first rather than
second.  I'm not sure how I feel about this one though.

cgf

- Raw text -


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