help-bash
[Top][All Lists]
Advanced

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

Re: Bash tab completion shows same dir twice


From: Chet Ramey
Subject: Re: Bash tab completion shows same dir twice
Date: Mon, 26 Aug 2024 11:35:29 -0400
User-agent: Mozilla Thunderbird

On 8/23/24 2:36 PM, Saurabh T wrote:
At some point during a session, tab completion starts showing the same dir 
twice. It does not happen at the start of the session. This is on Centos 8 with 
bash 4.4 (I have no way to upgrade the system). For example:

gdb ~/x/[tab]
y/   y/

Some observations:
- When it happens, it affects the whole session (ie. all terminals and 
instances of bash) and afaik the only recourse is to log out and back in. I 
have tried and failed to figure out under what circumstances this starts to 
happen

If you figure out a way to reproduce it, let me know. Of course, since
bash-4.4 is so old, it's likely that other changes have fixed this, if
there's a fix to be had.

- There is no "other" y/, it's reporting the one in ~/x/ twice.
- It seems to be dependent on the command, eg. may happen for gdb but not for 
ls. But may not always be the same command.

If it's command-specific, it may be the result of something bash-completion
is doing.

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

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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