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
"rl_completer_word_break_characters".
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,

'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    [email protected]    http://tiswww.cwru.edu/~chet/

_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to