Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bash outputs everything as one completion, rather than a list of completions #5730

Closed
Tracked by #3166
epage opened this issue Sep 17, 2024 · 1 comment · Fixed by #5731
Closed
Tracked by #3166

Bash outputs everything as one completion, rather than a list of completions #5730

epage opened this issue Sep 17, 2024 · 1 comment · Fixed by #5731
Labels
A-completion Area: completion generator C-bug Category: Updating dependencies E-medium Call for participation: Experience needed to fix: Medium / intermediate

Comments

@epage
Copy link
Member

epage commented Sep 17, 2024

This is with clap_complete 4.5.26, reproduced with cargo and the exhaustive example

I put the following in my PATH:

#!/usr/bin/env bash

cargo run --manifest-path ~/src/personal/clap/clap_complete/Cargo.toml --example exhaustive -F unstable-dynamic -- "$@" 2> /dev/null

I then ran

$ source <(COMPLETE=bash exhaustive)
$ exhaustive [TAB]
--generate
--help
--version
-h
-V
action
alias
help
hint
last
pacman
quote
value [CURSOR]

If I hit [ENTER], it runs each of those values as a command

@epage epage added A-completion Area: completion generator C-bug Category: Updating dependencies E-medium Call for participation: Experience needed to fix: Medium / intermediate labels Sep 17, 2024
@epage
Copy link
Member Author

epage commented Sep 17, 2024

CC @shannmu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-completion Area: completion generator C-bug Category: Updating dependencies E-medium Call for participation: Experience needed to fix: Medium / intermediate
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant