[Pkg-xen-devel] Bug#701554: xcp-xapi: bashism in /bin/sh script

Raphael Geissert atomo64 at gmail.com
Sun Feb 24 12:50:39 UTC 2013


Package: xcp-xapi
Version: 1.3.2-14
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/lib/xcp/lib/host-restore line 26 (trap with ERR|
>DEBUG|RETURN):
>      trap - EXIT ERR
>possible bashism in ./usr/lib/xcp/lib/host-restore line 31 (trap with ERR|
>DEBUG|RETURN):
>trap error EXIT ERR

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-xen-devel mailing list