[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filename completion causes doubling of initial ':' character

From: Chet Ramey
Subject: Re: Filename completion causes doubling of initial ':' character
Date: Mon, 5 Dec 2016 09:04:42 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.5.0

On 12/4/16 8:14 PM, L A Walsh wrote:
> Chet Ramey wrote:
>> The short answer is that colon is special to readline: it breaks words for
>> the readline completion code. If you want to complete filenames beginning
>> with a colon, either quote the colon or remove colon from $COMP_WORDBREAKS.
>> If you're using bash-completion, it may have its own problems with colons.

> Does readline have any config element in .inputrc to allow specifying
> what the word-break characters are as 'isearch-terminators' can specify
> a list of characters that terminate an incremental search or IFS specifies
> a list of characters that will be used to split a line into words?

Applications can use various mechanisms to specify the characters that
should break words for the readline word completer.  It's an application-
specific setting, since different applications have different syntax.  Bash
happens to use the COMP_WORDBREAKS variable, which is reflected as the
value of readline's rl_completer_word_break_characters variable.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]