delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/15/11:41:15

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Scott Wallace" <saw AT ternion DOT com>
To: "'Corinna Vinschen'" <cygwin AT cygwin DOT com>
Subject: RE: bash: difference between //c/ and c:/
Date: Thu, 15 Mar 2001 09:50:55 -0600
Message-ID: <000701c0ad67$b9315a70$27f3cfd8@pcsaw.ternion.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0)
In-reply-to: <20010315135950.E12630@cygbert.vinschen.de>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Importance: Normal

Regarding my "ls: .: No such file or directory" problem I had posted a few
days ago:
When I cd to "//c", I can do 'ls' just fine.  When I cd to "c:/" I have the
above mentioned problem.  When I try to cd to "/cygdrive/c", it won't go
there as it says that there's no such file or directory.  Apparently it
doesn't recognize "/cygdrive".  However, when I do a 'mount', it shows the
mounts ok:
==============================================================
tmp AT PCDEV1A /home
$ cd /cygdrive/c
bash: cd: /cygdrive/c: No such file or directory

tmp AT PCDEV1A /home
$ cd c:

tmp AT PCDEV1A c
$ ls
ls: .: No such file or directory

tmp AT PCDEV1A c
$ cd //c

tmp AT PCDEV1A //c
$ ls
BOOTSECT.DOS*            MSDOS.SYS*      System Volume Information/
BOOTSECT.F16*            NTDETECT.COM*   WINNT/
CONFIG.SYS*              PAGEFILE.SYS*   autoexec.bat*
Cygwin/                  PNPDRVRS/       boot.ini*
Documents and Settings/  PQ_PM40.PQB*    boot.ini~*
IO.SYS*                  Program Files/  ntldr*
Inetpub/                 RECYCLER/       temp/
Interix/                 Recycled/       vim/

tmp AT PCDEV1A //c
$ mount
Device              Directory           Type         Flags
C:\cygwin\bin       /usr/bin            system       binmode
C:\cygwin\lib       /usr/lib            system       binmode
C:\cygwin           /                   system       binmode
tmp AT PCDEV1A //c
$
==============================================================
Any ideas?  Thanks again for any help!

Scott Wallace



-----Original Message-----
From: cygwin-owner AT sources DOT redhat DOT com
[mailto:cygwin-owner AT sources DOT redhat DOT com]On Behalf Of Corinna Vinschen
Sent: Thursday, March 15, 2001 7:00 AM
To: cygwin
Subject: Re: bash: difference between //c/ and c:/


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 AT cygwin DOT com
Red Hat, Inc.

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


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

- Raw text -


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