Bugzilla – Bug 1218875
grub2-2.12-1.1 bash completion not working
Last modified: 2024-05-17 09:10:47 UTC
Fully updated Tumbleweed system. grub2-2.12-1.1.x86_64 bash completion has stopped working for grub2 prefixed commands. If I move the grub bash completion script from /usr/share/bash-completion/completions/grub to /etc/bash_completion.d/grub.sh and reload the shell then bash completion of grub2 prefixed commands starts working again. I noticed that bug #1213855 requested this move out of /etc/bash_completion.d/ .
Urh, the bash-completion file from grub2 seems not working well in the new directory. That file is still using some deprecated functions not working for /usr/share/bash-completion/completions/ and bash-completion also requires the matching app name there. Will find a proper fix.
The patch has been submitted to grub2 upstream for review. https://lists.gnu.org/archive/html/grub-devel/2024-01/msg00111.html