This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: bash 2.05a-3: option to allow drive letter prefixes for completion?
- From: Chet Ramey <chet at nike dot ins dot cwru dot edu>
- To: rrschulz at cris dot com
- Cc: rick_rankin at yahoo dot com, cygwin at cygwin dot com
- Date: Tue, 16 Apr 2002 14:06:46 -0400
- Subject: Re: bash 2.05a-3: option to allow drive letter prefixes for completion?
- Read-receipt-to: chet@po.CWRU.Edu
- Reply-to: chet at po dot CWRU dot Edu
> 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@po.CWRU.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/