[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



On 2021-10-27 Andreas Beckmann <anbe@debian.org> wrote:
> Package: lintian
> Version: 2.110.0
> Severity: important

> Hi,

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

>     echo "<<<<<<<<<< $file >>>>>>>>>>"
[...]

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

-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'


Reply to: