Lintian ReportsBETA

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 = instead
  • read without a variable in the argument
  • function to define a function
  • source instead of .
  • . command args, passing arguments to commands via source is not supported
  • {foo,bar} instead of foo bar
  • [[ test ]] instead of [ test ] (requires a Korn shell)
  • type instead of which or command -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

The following 7 source packages in the archive triggered the tag 15 times (in any Lintian version).

There were no overrides.