On 9/4/19 7:21 AM, Дилян Палаузов wrote:

> I do
> $ mkdir A
> $ cd A
> $ mkdir A=B
> $ touch A=B.C
> $ ls A=<TAB>
> 
> here readline completes to
> $ ls A=A\=B
> which is wrong.

It's not a bug, but it might be unexpected. `=' is one of the characters
that breaks words for readline completion, so everything following it --
the empty string, in this case -- is treated as the word to complete. If
you don't want that to happen, quote the `='.

This is explained in more detail in question E13 of the (old, unmaintained)
bash FAQ.

-- 
``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