Package: bash-completion
Version: 1:2.16.0-7
Severity: important
Tags: upstream patch
Hello,
After the upgrade from Bookworm 12 to Trixie 13, completion of SysVInit
services targets fails
As it seems to be related to changes done in bash-completion v2.12, the issue
also has been submitted upstream:
https://github.com/scop/bash-completion/issues/1498
Cheers,
B.
-- System Information:
Debian Release: 13.1
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.48+deb13-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled
-- no debconf information
--- /usr/share/bash-completion/bash_completion 2025-11-04 20:38:46.147140782
+0100
+++ /usr/share/bash-completion/bash_completion.fixed 2025-11-04
20:38:59.323846976 +0100
@@ -2093,9 +2093,9 @@
else
local sysvdirs
_comp_sysvdirs || return 1
- _comp_compgen_split -l -- "$(command sed -e 'y/|/ /' \
- -ne 's/^.*\(U\|msg_u\)sage.*{\(.*\)}.*$/\2/p' \
- "${sysvdirs[0]}/${prev##*/}" 2>/dev/null) start stop"
+ COMPREPLY=($(compgen -W '`command sed -e "y/|/ /" \
+ -ne "s/^.*\(U\|msg_u\)sage.*{\(.*\)}.*$/\2/p" \
+ ${sysvdirs[0]}/${prev##*/} 2>/dev/null` start stop' -- "$cur"))
fi
} &&
complete -F _comp_complete_service service