[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] Completing A=<TAB> doubles the A
From: |
Дилян Палаузов |
Subject: |
Re: [Bug-readline] Completing A=<TAB> doubles the A |
Date: |
Wed, 04 Sep 2019 14:00:45 +0000 |
User-agent: |
Evolution 3.34.0 |
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?
Regards
Дилян
On Wed, 2019-09-04 at 09:04 -0400, Chet Ramey wrote:
> 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.
>