]> git.ipfire.org Git - thirdparty/grub.git/commit
util/bash-completion: Fix for bash-completion 2.12
authorGary Lin <glin@suse.com>
Mon, 25 Mar 2024 02:11:34 +0000 (10:11 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 11 Apr 2024 13:48:25 +0000 (15:48 +0200)
commit0876fdf215292a06ad087f862ae7677c85ae444f
tree8636aec2653165130077134caac6b9bd2aebed8e
parent28c4405208cfb6e2cea737f6cbaf17e631bac6cd
util/bash-completion: Fix for bash-completion 2.12

_split_longopt() was the bash-completion private API and removed since
bash-completion 2.12. This commit initializes the bash-completion
general variables with _init_completion() to avoid the potential
"command not found" error.

Although bash-completion 2.12 introduces _comp_initialize() to deprecate
_init_completion(), _init_completion() is still chosen for the better
backward compatibility.

Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
util/bash-completion.d/grub-completion.bash.in