Bug#1095030: grub-common: Grub bash completion fails with error '-bash: _split_longopt: command not found'
Juozas Pocius
juozaspo at gmail.com
Sun Feb 2 19:16:04 GMT 2025
Package: grub-common
Version: 2.12-5
Severity: normal
X-Debbugs-Cc: juozaspo at gmail.com
Dear Maintainer,
Bash tab completion for grub is broken on latest Debian unstable build,
it is broken when using bash-completion 1:2.16.0-7. Trying to
autocomplete any grub command in the shell ends with failure where bash
throws an error '-bash: _split_longopt: command not found'
An example would be completing grub-install command, it would throw an
error when trying to complete for command line arguments.
The affected script, provided by grub-common contains _split_longopt
while package in bash-completion has _comp__split_longopt.
As the function name in recent bash-completion is updated, the function name in
the scripts should also be updated.
Running from minimal Debian unstable chroot installed on a filesystem
mounted on partitioned loop device created by using a losetup tool on
the host Ubuntu Linux system. All required packages to make the disk image
bootable are installed in the mounted chroot.
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/loop11p1 / ext4 rw,relatime 0 0
*********************** END /proc/mounts
*********************** BEGIN /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
unused devices: <none>
*********************** END /proc/mdstat
*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 9 Feb 2 09:17 ata-SAMSUNG_HD502HJ_S20BJ90SC28749 -> ../../sda
lrwxrwxrwx 1 root root 10 Feb 2 09:17 ata-SAMSUNG_HD502HJ_S20BJ90SC28749-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Feb 2 09:17 ata-SAMSUNG_HD502HJ_S20BJ90SC28749-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Feb 2 09:17 ata-SAMSUNG_HD502HJ_S20BJ90SC28749-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Feb 2 09:17 ata-SAMSUNG_HD502HJ_S20BJ90SC28749-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Feb 2 09:17 ata-SAMSUNG_HD502HJ_S20BJ90SC28749-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Feb 2 09:17 ata-SAMSUNG_HD502HJ_S20BJ90SC28749-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Feb 2 09:17 ata-SAMSUNG_HD502HJ_S20BJ90SC28749-part7 -> ../../sda7
lrwxrwxrwx 1 root root 9 Feb 2 09:17 wwn-0x50024e920186b51b -> ../../sda
lrwxrwxrwx 1 root root 10 Feb 2 09:17 wwn-0x50024e920186b51b-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Feb 2 09:17 wwn-0x50024e920186b51b-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Feb 2 09:17 wwn-0x50024e920186b51b-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Feb 2 09:17 wwn-0x50024e920186b51b-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Feb 2 09:17 wwn-0x50024e920186b51b-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Feb 2 09:17 wwn-0x50024e920186b51b-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Feb 2 09:17 wwn-0x50024e920186b51b-part7 -> ../../sda7
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Feb 2 09:17 0989407a-825f-41aa-8c6e-98b613e830a8 -> ../../sda4
lrwxrwxrwx 1 root root 10 Feb 2 09:17 0e886574-5e14-488a-8a54-af57cd8e1b54 -> ../../sda7
lrwxrwxrwx 1 root root 10 Feb 2 09:17 2f6c9800-4ac2-41b9-85ac-9137c9b88623 -> ../../sda1
lrwxrwxrwx 1 root root 10 Feb 2 09:17 5cba023b-ed3b-4f3a-9e21-91ef5a6d0c49 -> ../../sda2
lrwxrwxrwx 1 root root 10 Feb 2 09:17 83274e0c-ac78-4d13-9126-e4ca4ab5b79a -> ../../sda6
lrwxrwxrwx 1 root root 14 Feb 2 17:27 dd27a150-635d-4659-87cb-8078bc6cc1cf -> ../../loop11p1
lrwxrwxrwx 1 root root 10 Feb 2 09:17 eb81aae6-c843-4849-a00b-43c8fb89b1fa -> ../../sda5
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.15.0-130-generic (SMP w/2 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Versions of packages grub-common depends on:
ii gettext-base 0.23.1-1
ii libc6 2.40-6
ii libdevmapper1.02.1 2:1.02.201-1
ii libefiboot1t64 38-3.1+b1
ii libefivar1t64 38-3.1+b1
ii libfreetype6 2.13.3+dfsg-1
ii libfuse3-3 3.14.0-10
ii liblzma5 5.6.3-1+b1
Versions of packages grub-common recommends:
pn os-prober <none>
Versions of packages grub-common suggests:
pn console-setup <none>
pn desktop-base <none>
pn grub-emu <none>
pn mtools <none>
pn multiboot-doc <none>
pn xorriso <none>
-- no debconf information
More information about the Pkg-grub-devel
mailing list