Bug 1221849 - grub2 bash-completion failed with '_split_longopt: command not found'
Summary: grub2 bash-completion failed with '_split_longopt: command not found'
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Bootloader (show other bugs)
Version: Current
Hardware: All openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Bootloader Maintainers
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-22 07:27 UTC by Gary Ching-Pang Lin
Modified: 2024-04-12 09:15 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Ching-Pang Lin 2024-03-22 07:27:33 UTC
After upgrading bash-completion to 2.12, grub2 bash-completion scripts stopped to work and showed the error: _split_longopt: command not found.

It's because bash-completion 2.12 renamed '_split_longopt' as '_comp__split_longopt', and bash-completion upstream(*) stated that '_split_longopt' is a private API so it should not be used directly. Instead, the script should use '_init_completion -s' or the newer '_comp_initialize -s' to initialize 'cur', 'prev', and 'split'.

(*) https://github.com/scop/bash-completion/issues/1135
Comment 1 Gary Ching-Pang Lin 2024-04-12 09:15:13 UTC
The patch was posted upstream and got the "reviewed-by" recently.
https://lists.gnu.org/archive/html/grub-devel/2024-03/msg00076.html

Submitted the fix to Base:System/grub2: sr#1166747