delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/27/23:18:43

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: <5.1.1.5.2.20020927224418.00a6b550@mail.earthlink.net>
X-Sender: jeremyhetzler AT mail DOT earthlink DOT net
Date: Fri, 27 Sep 2002 23:22:52 -0700
To: "Jeff Perry" <jsp AT mail DOT utexas DOT edu>
From: Jeremy Hetzler <jeremyhetzler AT earthlink DOT net>
Subject: Re: How does cygwin map / to c:/cygwin?
Cc: <cygwin AT cygwin DOT com>
In-Reply-To: <00e401c26677$60d07210$40cf5380@cvis.psy.utexas.edu>
Mime-Version: 1.0

At 05:44 PM 9/27/2002 -0500, 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.
"c:\cygwin" is mounted as "/". Your Windows drives (c:, d:) are mounted 
under /cygdrive (/cygdrive/c, /cygdrive/d).

>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).
This is correct behavior. Only programs compiled against cygwin1.dll are 
aware of Cygwin-style paths. vim is available for Cygwin, maybe gvim is as 
well (try http://cygwin.com/packages/ , try Google, try searching the 
mailing list).

>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.
The name of the directory is WINNT, not winnt. bash will tab-complete 
successfully if you give it the right name (exceptions include /dev).

Jeremy


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