[Pkg-javascript-devel] Bug#772324: libjs-dojo-dojox: bashism in /bin/sh script

Raphael Geissert atomo64 at gmail.com
Sat Dec 6 13:04:40 UTC 2014


Package: libjs-dojo-dojox
Severity: important
Version: 1.10.2+dfsg-1
User: debian-release at lists.debian.org
Usertags: goal-dash

Hi,

I've ran checkbashisms (from the 'devscripts' package) over the whole
archive and I found that your package has a /bin/sh script that uses a
"bashism".

checkbashisms' output:
> possible bashism in ./usr/share/javascript/dojox/mobile/build/build.sh 
line
> 17 (should be 'b = a'):
> if [ "$1" == "single" ]; then
> possible bashism in ./usr/share/javascript/dojox/mobile/build/build.sh 
line
> 20 (should be 'b = a'):
> if [ "$1" == "single" ]; then
> possible bashism in ./usr/share/doc/libjs-dojo-dojox/examples/build.sh 
line
> 17 (should be 'b = a'):
> if [ "$1" == "single" ]; then
> possible bashism in ./usr/share/doc/libjs-dojo-dojox/examples/build.sh 
line
> 20 (should be 'b = a'):
> if [ "$1" == "single" ]; then


Not using bash (or a Debian Policy compliant shell interpreter that doesn't
provide such an extra feature) as /bin/sh is likely to lead to errors or
unexpected behaviours. Please be aware that dash is the default /bin/sh.

Please closely examine the above output and the script, and determine
what the proper severity of the bug is, and adjust it accordingly. If
it's important or greater please hurry to get this fixed for jessie.

Hints about how to fix bashisms can be found at:
https://wiki.ubuntu.com/DashAsBinSh

Thanks in advance,
Raphael Geissert



More information about the Pkg-javascript-devel mailing list