[Top][All Lists]

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

Re: [Bug-readline] Completing A=<TAB> doubles the A

From: Chet Ramey
Subject: Re: [Bug-readline] Completing A=<TAB> doubles the A
Date: Wed, 4 Sep 2019 10:20:27 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

On 9/4/19 10:00 AM, Дилян Палаузов wrote:
> Hello Chet,
> this is then not readline, but bash specific:
> $ gdb
> (gdb) !ls
> 'A=B'  'A=B.C'
> (gdb) exec A=<TAB>
> comeletes to A=B, whereas
> (gdb) exec A\=<TAB>
> does not complete.
> Where is the = documented and why is it possible for gdb to bahave 
> intuitively, but not for bash?

Well, you could start with the FAQ question (E13) I referenced.

Then you could look at "How Completion Works" in the readline texinfo
manual, paying attention to the description of
Note the default list in the description of "rl_basic_word_break_characters."
The variable is available so different applications can set it to different
appropriate values.

So, armed with that, you can go to the bash documentation and look for
the description of COMP_WORDBREAKS,

     The set of characters that the Readline library treats as word
     separators when performing word completion.  If 'COMP_WORDBREAKS'
     is unset, it loses its special properties, even if it is
     subsequently reset.

You can even run `echo "$COMP_WORDBREAKS"' to get the default value
and change it to whatever you want.

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

reply via email to

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