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. > _______________________________________________ Bug-readline mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-readline
