[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tab completion error
From: |
Chet Ramey |
Subject: |
Re: tab completion error |
Date: |
Tue, 3 Oct 2023 10:40:39 -0400 |
User-agent: |
Mozilla Thunderbird |
On 9/28/23 5:55 PM, Mike Jonkmans wrote:
On Thu, Sep 28, 2023 at 11:17:22AM -0400, Chet Ramey wrote:
On 9/25/23 5:40 PM, Mike Jonkmans wrote:
On Mon, Sep 25, 2023 at 03:44:15PM -0400, Chet Ramey wrote:
...
Do we need to file an issue with bash-completion?
Issue created:
https://github.com/scop/bash-completion/issues/1057
With an even smaller reproducer.
INPUTRC=/dev/null bash --noprofile --norc
mkdir d
touch d/f
ls d/"<TAB>
Gives:
ls d/"d/
This could be an opportunity for bash-completion to do a better job than
bash's default completion. It could note that ${COMP_WORDS[$COMP_CWORD]}
differs from the word readline thinks is being completed, check whether
readline's word is a subset of the current word, perform completions on
the current word as it does now, and then filter out the prefix readline
isn't going to use before returning the possible completions.
--
``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/
- Re: tab completion error,
Chet Ramey <=