[Top][All Lists]

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

Re: show-all-if-unmodified doesn't work when partial match contains an e

From: Chet Ramey
Subject: Re: show-all-if-unmodified doesn't work when partial match contains an escaped character
Date: Mon, 24 Aug 2020 16:47:55 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.11.0

On 8/20/20 2:19 AM, Abon B wrote:
> In bash 5.0.17 (readline 8.0.004), consider with
> 'set show-all-if-unmodified on':
> $ touch 'test file-1.txt' 'test file-2.txt'
> $ ls test<tab>
> This expands to 'ls test\ file-'. Then:
> $ ls test\ file-<tab>
> The partial match is unchanged, so with show-all-if-unmodified on it
> should show completions. However, it behaves as if the setting was not
> set and needs a second tab press to show completions.
> Contrast that with:
> $ touch 'test-file-1.txt' 'test-file-2.txt'
> $ ls test<tab>
> $ ls test-file-<tab>
> Which shows matches with a single tab press as expected.
> I also tested with literal tabs in the partial matches, which doesn't
> work either. I'd guess it has to do with the modification check not
> taking into account the escaped characters.

Thanks for the report. Your guess is spot on.


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