delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/16/14:14:33

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
Date: Tue, 16 Apr 2002 14:06:46 -0400
From: Chet Ramey <chet AT nike DOT ins DOT cwru DOT edu>
To: rrschulz AT cris DOT com
Subject: Re: bash 2.05a-3: option to allow drive letter prefixes for completion?
Cc: rick_rankin AT yahoo DOT com, cygwin AT cygwin DOT com
Reply-To: chet AT po DOT CWRU DOT Edu
Message-ID: <020416180646.AA13793.SM@nike.ins.cwru.edu>
Read-Receipt-To: chet AT po DOT CWRU DOT Edu
MIME-Version: 1.0
X-In-Reply-To: Message from rrschulz AT cris DOT com of Tue, 16 Apr 2002 10:52:45 -0700 (id <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020416104825 DOT 00ae4ff0 AT pop3 DOT cris DOT com>)

> Well, it gets weirder.
> 
> I activated the "show-all-if-ambiguous" and now when I type, say:
> 
>          % echo c:/<TAB>
> 
> What I get is a list of the _Cygwin root_!
> 
> The same thing results if I use:
> 
>          % echo d:/<TAB>

Quote the colon.  Readline has a set of characters it uses as word
delimiters for completion, and the calling application can modify that
set to its tastes.  Bash includes `:' as a word break character, which
makes it convenient to complete colon-separated lists like $PATH. 
Since the colon breaks words, the only thing that gets passed to the
filename completer is `/' and whatever follows it.  Quoting the colon
(the simplest thing to use is a backslash) causes readline to not
consider it a word break character.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    chet AT po DOT CWRU DOT Edu    http://cnswww.cns.cwru.edu/~chet/

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