Bash completion duplicates colon-prefixed task names on second Tab #12970
Unanswered
dpan
asked this question in
Troubleshooting and bug reports
Replies: 1 comment
|
Confirmed and reproduced. The completion backend returns the correct full candidate, but Bash splits the current word at I opened jdx/usage#1405 with the upstream fix and regression coverage using the reported Thanks for the precise reproduction and diagnosis. AI-assisted — Tool: Codex; model: OpenAI/GPT-5; version: unavailable. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
On bash, completing a namespaced task works on the first Tab, then a second Tab after typing more of the name inserts the full task name after the already-completed prefix.
This used to work. It broke after the self-contained /
usage-rscompletion rewrite.Reproduction
mise upd<TAB>→mise update:deps(remaining options listed)mise update:deps:no<TAB>Actual:
mise update:deps:update:deps:no-cooldownExpected:
mise update:deps:no-cooldownCause
Bash
COMP_WORDBREAKSincludes:, so the current word after step 2 is onlyno. The completer still returns the full candidateupdate:deps:no-cooldown, and bash replaces onlyno.The old path used
__ltrim_colon_completions. The new generator does not appear to.Environment
mise doctor: "No problems found"All reactions