Lintian ReportsBETA

bash-term-in-posix-shell

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

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 ea05801. For merge requests, please use the latest version in the Lintian check shell/non-posix/bash-centric.

Visibility: info

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

We found 47 overrides. The tag performed 99% of the time.