delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/13/21:28:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.2.1.2.0.20050613212542.07318b28@pop.prospeed.net>
Date: Mon, 13 Jun 2005 21:27:56 -0400
To: cygwin AT cygwin DOT com, cygwin AT cygwin DOT com
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: Re: Question about tab completion
In-Reply-To: <42AD5A7C.CF9A882B@dessent.net>
References: <d8jju1$294$1 AT sea DOT gmane DOT org> <42AD5A7C DOT CF9A882B AT dessent DOT net>
Mime-Version: 1.0

At 06:05 AM 6/13/2005, you wrote:
>Mikael wrote:
>
>> But say I type /c<tab>, instead of stopping at c as I thought would happen,
>> /cyg is completed and these three are displayed:
>> cygdrive    cygwin.bat  cygwin.ico
>> 
>> Why? Why doesn't it stop at c? Have I done something wrong with my mounts or
>> is this as it should be?
>
>Tab completion doesn't know about mounts, only directories and files. 
>Since there is not actually a directory in the root named 'c'
>(underneath the mount), tab completion doesn't consider it.  In other
>words, if you do "ls /" you won't see /c, which is essentially all that
>tab completion does.
>
>You can get the desired behavior though by actually creating a directory
>there.  But you can't do this while /c is mounted, so you'll have to
>temporarily set the cygdrive to something else.
>
>$ mount -c /cygdrive
>$ mkdir /c
>$ mount -c /


And it's standard UNIX practice to create the mount point directory first.  
Or, more correctly, you *have* to create the directory first.  Cygwin doesn't
require you to create the directory before mounting to it but doing so 
doesn't have much in the way of advantages, as you've noticed.



--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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