possible-bashism-in-maintainer-script
This script is marked as running under /bin/sh
, but it seems
to use a feature found in bash but not in the SUSv3 or POSIX shell
specification.
Some examples are:
==
in a test, it should use=
insteadread
without a variable in the argumentfunction
to define a functionsource
instead of.
. command args
, passing arguments to commands viasource
is not supported{foo,bar}
instead offoo bar
[[ test ]]
instead of[ test ]
(requires a Korn shell)type
instead ofwhich
orcommand -v
For more information please consult:
- Scripts (Section 10.4) in the Debian Policy Manual
The tag is present in Lintian version 2.114.163
.
That is the most recent version we know about.
We use semantic versions.
The patch number is a commit step indicator relative to the
2.114.0
release tag in our Git
repository.
You can find the detection logic for this version at commit 2ff4e94. For merge requests, please use the latest version in the Lintian check shell/non-posix/bash-centric.
Visibility: warning