Closed siteshwar closed 3 months ago
Option names are supposed to be generated by _comp_compgen_help
but the output of alternatives --help
is not in a format parsed by _comp_compgen_help
:
$ alternatives --help
alternatives version 1.26 - Copyright (C) 2001 Red Hat, Inc.
This may be freely redistributed under the terms of the GNU Public License.
usage: alternatives --install <link> <name> <path> <priority>
[--initscript <service>]
[--family <family>]
[--follower <follower_link> <follower_name> <follower_path>]*
alternatives --remove <name> <path>
alternatives --auto <name>
alternatives --config <name>
alternatives --display <name>
alternatives --set <name> <path/family>
alternatives --list
alternatives --remove-all <name>
alternatives --add-follower <name> <path> <follower_link> <follower_name> <follower_path>
alternatives --remove-follower <name> <path> <follower_name>
common options: --verbose --test --help --usage --version --keep-missing --keep-foreign
--altdir <directory> --admindir <directory>
Describe the bug
Completions for 'alternatives' command are broken.
To reproduce
These are the steps to reproduce on Fedora:
bash-completion
package is installed.alternatives <TAB>
.Expected behavior
Different options supported by
alternatives
command should be listed.Versions (please complete the following information)
echo "$BASH_VERSION"
: 5.2.26(1)-release(IFS=.; echo "${BASH_COMPLETION_VERSINFO[*]}")
: 2.13.0