1

When running the command rpm --query --all the options such as --query and -all are auto-completed when using the tab key.

When running the command rpm --verify --all, the option --all does not auto-complete nor does it appear as an option when depressing the tab key multiple times.

To execute the command rpm --verify --all, it has to entered in its entirety.

The bash shell is in use.

Why does the option --all for example not auto-complete or appear in the list of available options?

  • @JeffSchaller - The question has been updated. – Motivated Jan 27 at 17:39
  • The completion function probably doesn't have --all in its list of options. – Olorin Jan 28 at 6:17
  • @Olorin - Can you elaborate further? What do you men by the completion function doens't have --all in its list of options? It would seem odd since --all is available when using the command rpm --query --all. – Motivated Jan 28 at 6:29
  • It maybe checking the first option and looking up further applicable options, and --all is not in the list of applicable options for --verify. – Olorin Jan 28 at 6:36
  • @Olorin - Do you mean to say that subsequent flags/options are dependent on the first flag/option as opposed to the primary command for the purposes of auto-completion? If yes, that would require knowing the command and its library of flags/options in some depth? – Motivated Jan 28 at 6:45
1

The bash completion for rpm is provided directly by the bash-completion project, not by rpm itself. It is clearly a bug. Feel free to file an issue here: https://github.com/scop/bash-completion

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.