[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Readline sometimes doesn't autocomplete until the next disambiguatio

From: Chet Ramey
Subject: Re: Readline sometimes doesn't autocomplete until the next disambiguation
Date: Sat, 7 Jan 2023 14:31:16 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1

On 12/29/22 1:01 PM, Martin Castillo wrote:

Am 27.12.22 um 20:36 schrieb Chet Ramey:
On 12/25/22 10:22 AM, Martin Castillo wrote:

consider this folder:

$ mkdir -p "a b/c d e"
$ touch a\ b/c\ d\ e/10._{f,g}

$ ls a\ b/c\ d\ e/<TAB> or
$ ls a\ b/c\ d\ e/1<TAB>
changes the line to
$ ls a\ b/c\ d\ e/10._
as it should, but typing
$ ls a\ b/c\ d\ e/10<TAB>  or
$ ls a\ b/c\ d\ e/10.<TAB>
does not add further characters to the input line.

I can't reproduce this using bash-5.1 or bash-5.2.

I'm sorry. you need to add
set show-all-if-ambiguous on
in ~/.inputrc

OK, I see the issue now. It happens when the text from the line buffer
(quoted) is compared to the common prefix of the matches (unquoted), and
the quoting makes the former appear longer than the latter, so the code
assumes that the match doesn't add any characters to the word.  I'll
fix it in the next bash devel branch push.


``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

reply via email to

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