Bug#1016919: lintian: bash-term-in-posix-shell false positive for `. "$(dirname "$0")/functions.sh"`
Diederik de Haas <didi.debian@cknow.org> writes:
> I looked a little deeper/further and specifically into
> `lib/coresight.sh` and that file does contain `echo -n`, which
> ShellCheck does flag as it's undefined in POSIX. So maybe it was
> actually triggered by the 'included' file?
> I don't know if that could also be the case for the original reporter.
Although echo -n is undefined in POSIX, Debian requires it to work in all
shells that are eligible to be /bin/sh. See:
https://www.debian.org/doc/debian-policy/ch-files.html#scripts
--
Russ Allbery (rra@debian.org) <https://www.eyrie.org/~eagle/>
Reply to: