#997911 lintian: bash-term-in-posix-shell false positive for '<<<' in quoted strings

#997911#5
Date:
2021-10-26 23:56:46 UTC
From:
To:
Hi,

src:nvidia-graphics-driver has this in its bug script:

    echo "<<<<<<<<<< $file >>>>>>>>>>"

which triggers a new lintian warning:

I: libcuda1: bash-term-in-posix-shell [usr/share/bug/libcuda1/script:126] '<<<'
I: libcuda1: bash-term-in-posix-shell [usr/share/bug/libcuda1/script:134] '<<<'


Andreas

#997911#10
Date:
2021-11-14 12:31:53 UTC
From:
To:
[...]

Hello,

The curly-braces check ("{foo,bar} instead of foo bar") also has some
false positives, afaik ${VARIABLE} is perfectly legal but trigggers a
warning:
I: exim4-base: bash-term-in-posix-shell [etc/cron.daily/exim4-base:62] '${HOSTNAME
The line number seems to be off, BTW:
ametzler@argenau:/tmp/EXIM4$ cat -n exim-4.95/debian/exim4-base/etc/cron.daily/exim4-base  | grep HOSTNAME
    38          if ! HOSTNAME=$(/usr/sbin/exim4 -be '${primary_hostname}'); then
    39                  HOSTNAME="$(hostname)"
    61                  | mail -s"${HOSTNAME} Daily e-mail activity report" \
    65                  | mail -s"${HOSTNAME} Daily e-mail activity report" \
    91        "${HOSTNAME}" "${E4BCD_PANICLOG_REPORT_TO}" "${HOSTNAME}" \

cu Andreas