• Bug#1104049: bash-completion: bashism in /etc/profile.d/ snippet

    From Thorsten Glaser@21:1/5 to All on Fri Apr 25 03:10:01 2025
    Package: bash-completion
    Version: 1:2.11-6
    Severity: serious
    Justification: Policy 10.4
    Tags: bookworm trixie sid
    Control: found -1 1:2.16.0-7
    X-Debbugs-Cc: tg@mirbsd.de

    /etc/profile.d/bash_completion.sh has:

    if [ "x${BASH_VERSION-}" != x -a "x${PS1-}" != x -a "x${BASH_COMPLETION_VERSINFO-}" = x ]; then

    This in itself is already a bashism; [(1) has no -a in POSIX.

    Suggested fix (full disclosure, I’m the mksh developer, which does
    have -a as an extension as well, but I know a bit about POSIX sh):

    if test -n "${BASH_VERSION-}" && test -n "${PS1-}" && test -z "${BASH_COMPLETION_VERSINFO-}"; then

    Thanks for fixing!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Fri Apr 25 03:10:01 2025
    Processing control commands:

    found -1 1:2.16.0-7
    Bug #1104049 [bash-completion] bash-completion: bashism in /etc/profile.d/ snippet
    Marked as found in versions bash-completion/1:2.16.0-7.

    --
    1104049: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104049
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)