[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 09:04:55 -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 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    address@hidden    http://tiswww.cwru.edu/~chet/

reply via email to

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