Bug#690627: asterisk: bashism in /bin/sh script

Raphael Geissert atomo64 at gmail.com
Tue Oct 16 02:52:23 UTC 2012


Package: asterisk
Version: 1.8.13.1~dfsg-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/sbin/autosupport line 36 (should be 'b = a'):
>  if [ $1 == "-h" ] || [ $1 == "--help" ]; then
>possible bashism in ./usr/sbin/autosupport line 56 (should be 'b = a'):
>  elif [ $1 == "-n" ] || [ $1 == "--non-interactive" ]; 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 Pkg-voip-maintainers mailing list