-
Notifications
You must be signed in to change notification settings - Fork 223
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 completion errors for invalid subcommands #975
Comments
The problem right now is that the completion file shipped is out of sync with the completion system we already have implemented upstream. If you want a workaround, just do:
and then
After that you will get the right behaviour. The fix upstream should be as easy as replacing the current bash completion file with the contents of the right_completions file. |
Thank you both! I am also wondering, if there is a generator for completions in place, |
Mmm... I believe these are the same :).
Thanks for the insight!
That's what #840 is trying to accomplish :). |
Describe the bug
I was trying to remove a container I do not need any more.
The name of the container was
rawhide-test
,so I typed:
$ toolbox remove raw
and tried to save me some typing by invoking bash completion with
<Tab>
.The following error was printed:
This happens because
remove
is not a Toolbox subcommand,the correct command is
rm
,In which case bash completion works as expected.
But, every other tool's bash completion simply does not complete or suggest anything
when there are no completions available.
Steps how to reproduce the behaviour
1.Type, but do not hit enter:
$ toolbox invalid-command
2. Invoke bash completion by hitting
<Tab>
Expected behaviour
Nothing happens.
Actual behaviour
Error as given in the description appears.
Screenshots
n/a
Output of
toolbox --version
(v0.0.90+)toolbox version 0.0.99.2
Toolbox package info (
rpm -q toolbox
)toolbox-0.0.99.2^3.git075b9a8d2779-4.fc35.x86_64
Output of
podman version
Podman package info (
rpm -q podman
)podman-3.4.4-1.fc35.x86_64
Info about your OS
Fedora Workstation 35
Additional context
n/a
The text was updated successfully, but these errors were encountered: