[Debian-ha-maintainers] Bug#690641: pacemaker: bashism in /bin/sh script
Raphael Geissert
atomo64 at gmail.com
Tue Oct 16 04:17:09 UTC 2012
Package: pacemaker
Version: 1.1.7-1
Severity: important
User: debian-release at lists.debian.org
Usertags: goal-dash
Hello maintainer,
While performing an archive wide checkbashisms (from the 'devscripts'
package) check I've found your package containing a /bin/sh script making
use of a bashism.
checkbashisms' output:
>possible bashism in ./usr/bin/ccs2cib line 24 (should be >word 2>&1):
> which ccs_flatten &> /dev/null || die "Can't find ccs_flatten in
> path!"
>possible bashism in ./usr/bin/ccs2cib line 25 (should be >word 2>&1):
> which java &> /dev/null || die "Can not find java in
> path!"
>possible bashism in ./usr/bin/ccs2cib line 81 (declare):
>declare conf_in cib_out xsl_file saxon_jar conf_out opt do_update tmp
>possible bashism in ./usr/bin/ccs2cib line 82 (declare):
>declare force_update no_verify
>possible bashism in ./usr/bin/ccs2cib line 162 (should be >word 2>&1):
> if clustat -Q &> /dev/null; then
Not using bash (or a Debian Policy conformant shell interpreter which
doesn't provide such an extra feature) as /bin/sh is likely to lead to
errors or unexpected behaviours.
You can find hints about how to fix bashisms at:
https://wiki.ubuntu.com/DashAsBinSh
Thank you,
Raphael Geissert
More information about the Debian-ha-maintainers
mailing list