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

Trying to autocomplete a command that starts with a slash leads to passing arbitrary options to __fish_describe_command #7809

Closed
ericonr opened this issue Mar 10, 2021 · 2 comments
Labels
bug Something that's not working as intended
Milestone

Comments

@ericonr
Copy link
Contributor

ericonr commented Mar 10, 2021

Fish 3.2.0

Can be seen in this asciinema: https://asciinema.org/a/9241XGmAqWLCrZeh8qO1OLvCd

> -astring escape: Unknown option '-a'

/usr/share/fish/functions/__fish_describe_command.fish (line 1):
in command substitution
        called on line 14 of file /usr/share/fish/functions/__fish_describe_command.fish
in function '__fish_describe_command' with arguments '-a'
in command substitution

(Type 'help string' for related documentation)

Where I pressed tab right after -a in the > -astring escape: Unknown option '-a' line.

@faho faho closed this as completed in d2fc1c4 Mar 10, 2021
@faho faho added the bug Something that's not working as intended label Mar 10, 2021
@faho faho added this to the fish 3.2.1 milestone Mar 10, 2021
@faho
Copy link
Member

faho commented Mar 10, 2021

Yup, this was simply missing a -- separator.

@ericonr
Copy link
Contributor Author

ericonr commented Mar 10, 2021

Makes sense, thanks :)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something that's not working as intended
Projects
None yet
Development

No branches or pull requests

2 participants