[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash completion in Cygwin
From: |
Chet Ramey |
Subject: |
Re: Bash completion in Cygwin |
Date: |
Fri, 12 Aug 2005 11:18:22 -0400 |
User-agent: |
Mozilla Thunderbird 1.0.6 (Macintosh/20050716) |
Gary Fritz wrote:
> In
> http://groups-
> beta.google.com/group/gnu.bash.bug/browse_thread/thread/e0dc6716afe8162d/df
> a06fd85db708e1
> a bug was reported that prevented TAB completion from working properly in
> Cygwin when the "c:/" synonym for "/cygdrive/c" was used. Because ":" is
> considered whitespace for completion for setting PATH, it breaks completion
> when you use c:/.
The fix, available in the current release of bash, is to modify the
contents of the COMP_WORDBREAKS variable to remove the `:'. That will
change readline's completion behavior so it does not break words to be
completed at colons.
For example:
COMP_WORDBREAKS=${COMP_WORDBREAKS//:/}
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/