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
Severity: | warning |
Experimental: | false |
See also
Scripts (Section 10.4) in the Debian Policy Manual
- list of all the affected packages
- the source of this tag