delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/28/13:00:12

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
Message-ID: <005301c2670d$3636c4f0$0100a8c0@bowsher.foo>
From: "Max Bowsher" <maxb AT ukf DOT net>
To: "Jeff Perry" <jsp AT mail DOT utexas DOT edu>, <cygwin AT cygwin DOT com>
References: <00e401c26677$60d07210$40cf5380 AT cvis DOT psy DOT utexas DOT edu>
Subject: Re: How does cygwin map / to c:/cygwin?
Date: Sat, 28 Sep 2002 17:34:42 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

Jeff Perry wrote:
> I am very confused about how cygwin maps its root to the c:/cygwin
> directory.  I'm also not sure what /cygdrive is.
>
> When I type gvim /etc/passwd from bash, gvim comes up with an empty file
> called passwd in c:/etc (which doesn't exist).  If I try to write this file,
> gvim fails, which, of course, it should. (The gvim I'm using is the one
> compiled for NT).
>
> Can someone tell me why this happens?

The Cygwin POSIX paths come from the cygwin1.dll. So if your program hasn't been
compiled for Cygwin, it won't understand Cygwin paths.

> Also, when I try to tab-expand /cygdrive/c/..., bash can never expand the
> files.  For example, if I type
> $ cd /cygdrive/c/winn<tab>, bash cannot complete the 't' and instead beeps.
> But if I complete it for bash by adding the t and the pressing <return>,
> bash will cd me to the c:/winnt directory.
>
> Can someone tell me why this is true?

Sounds like case clashes. See the readline info pages and add "set
completion-ignore-case On" to your global inputrc file or ~/.inputrc.

Max.


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