Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Thu, 15 Mar 2001 13:59:50 +0100
From: Corinna Vinschen <cygwin@cygwin.com>
To: cygwin <cygwin@cygwin.com>
Subject: Re: bash: difference between //c/ and c:/
Message-ID: <20010315135950.E12630@cygbert.vinschen.de>
Mail-Followup-To: cygwin <cygwin@cygwin.com>
References: <200103151246.f2FCkmO310968@jupiter.akutech-local.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <200103151246.f2FCkmO310968@jupiter.akutech-local.de>; from ralf@akutech.de on Thu, Mar 15, 2001 at 01:46:48PM +0100

On Thu, Mar 15, 2001 at 01:46:48PM +0100, Ralf Fassel wrote:
> Hi all,
> 
> cygwin-1.1.8-2.tar.gz
> bash-2.04-7a.tar.gz
> 
> there is a subtle difference between c:/ and //c/
> compare the real execution times (this is for a local desktop bash
> (not via ssh)):
> 
> bash$ time cd //c/
> real    0m0.050s
> user    0m0.000s
> sys     0m0.000s
> 
> bash$ time cd c:/
> real    0m6.770s
> user    0m0.000s
> sys     0m0.000s
> 
> bash$ mount
> Device              Directory           Type         Flags
> C:\cygwin\bin       /usr/bin            system       binmode
> C:\cygwin\lib       /usr/lib            system       binmode
> C:\cygwin           /                   system       binmode
> 
> What's the deal with the LETTER:/PATH pathnames in bash?  Am I
> supposed to use //c/?  Is c:/ deprecated somehow?

Bash is a UNIX shell. Why not using UNIX paths? Actually not
C:/ is deprictaed but //c! The syntax is ambiguous since that
could also address a SMB server. We may decide to eliminate
that syntax for local drives completely in the future. Use
the /cygdrive/c syntax instead.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

