delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/15/16:08:19

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: <cygwin AT cygwin DOT com>
Subject: FW: bash: difference between //c/ and c:/ OR ls: .: No such file or directory
Date: Thu, 15 Mar 2001 14:53:48 -0600
Message-ID: <001901c0ad92$08da7960$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)
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Importance: Normal

Hurray!!  Using that mount command "mount -s -b --change-cygdrive-prefix /"
fixed my 'ls' problems!  Now when I cd c:, I can 'ls' fine.
Thank you very much Earnie, Corinna and everyone else!

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 Earnie Boyd
Sent: Thursday, March 15, 2001 1:27 PM
To: Corinna Vinschen
Subject: Re: bash: difference between //c/ and c:/


Corinna Vinschen wrote:
>
> On Thu, Mar 15, 2001 at 06:02:54PM +0100, Ralf Fassel wrote:
> > * Corinna Vinschen
> > | Bash is a UNIX shell. Why not using UNIX paths?
> >
> > Because we use non-Cygwin programs which don't grok /cygwin pathnames.
> > Unfortunately, there is a world besides cygwin.
> >
> > $ cl     t.c   -o t
> > Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 11.00.7022 for
80x86
> > ...
> > $ ./t /cygdrive/c/autoexec.bat c:/autoexec.bat
> > 1: /cygdrive/c/autoexec.bat: fopen failed
> > 2: c:/autoexec.bat: fopen succeeded
> >
> > | 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.
> >
> > Uh, please don't... :-/ Aren't single letter SMB servers rather rare?
> >
> > | Use the /cygdrive/c syntax instead.
> >
> > As I described in another mail, this currently breaks my openssh
> > installation, so I stick with //c for now.
>
> Why don't you mount your drives and drop the double slash:
>
>         mount -f -s -b C: /c
>         ...
>

Actually `mount --change-cygdrive-prefix -s -b /' will take care of that
for you.  Then instead of /cygdrive/c/foo/bar you can access /c/foo/bar
without mounting each drive.

Earnie.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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