[Surfraw-devel] Bug#690615: surfraw: bashism in /bin/sh script
Raphael Geissert
atomo64 at gmail.com
Tue Oct 16 02:08:01 UTC 2012
Package: surfraw
Version: 2.2.8-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/lib/surfraw/yandex line 36 (alternative test
command ([[ foo ]] should be [ foo ])):
> [[ -n $search ]] && setopt SURFRAW_yandex_search "${search}text"
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 Surfraw-devel
mailing list