[Pkg-alsa-devel] Bug#581117: ld10k1: bashism in /bin/sh script

Raphael Geissert atomo64 at gmail.com
Tue May 11 05:33:36 UTC 2010


Package: ld10k1
Severity: important
Version: 1.0.22-1
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/share/ld10k1/init_live line 49 ('function' is
> useless):
> function log
> possible bashism in ./usr/share/ld10k1/init_live line 60 ('function' is
> useless):
> function runlo10k1
> possible bashism in ./usr/share/ld10k1/init_live line 74 ('function' is
> useless):
> function rename
> possible bashism in ./usr/share/ld10k1/init_live line 84 ('function' is
> useless):
> function connect
> possible bashism in ./usr/share/ld10k1/init_live line 95 ('function' is
> useless):
> function copy
> possible bashism in ./usr/share/ld10k1/init_live line 108 ('function' is
> useless):
> function volume
> possible bashism in ./usr/share/ld10k1/init_live line 123 ('function' is
> useless):
> function master_volume
> possible bashism in ./usr/share/ld10k1/init_live line 138 ('function' is
> useless):
> function switch
> possible bashism in ./usr/share/ld10k1/init_live line 153 ('function' is
> useless):
> function switch_2x2
> possible bashism in ./usr/share/ld10k1/init_live line 169 ('function' is
> useless):
> function switch_5x2
> possible bashism in ./usr/share/ld10k1/init_live line 185 ('function' is
> useless):
> function master_switch
> possible bashism in ./usr/share/ld10k1/init_live line 200 ('function' is
> useless):
> function playback
> possible bashism in ./usr/share/ld10k1/init_live line 214 ('function' is
> useless):
> function playback_noswitch
> possible bashism in ./usr/share/ld10k1/init_live line 227 ('function' is
> useless):
> function capture
> possible bashism in ./usr/share/ld10k1/init_live line 241 ('function' is
> useless):
> function capture_noswitch
> possible bashism in ./usr/share/ld10k1/init_live line 254 ('function' is
> useless):
> function master
> possible bashism in ./usr/share/ld10k1/init_live line 267 ('function' is
> useless):
> function dump_patches
> possible bashism in ./usr/share/ld10k1/init_live line 271 ('((' should be
> '$(('):
>     for (( i=0; $i < $num; i=$i+1 )); do
> possible bashism in ./usr/share/ld10k1/init_live line 280 ('function' is
> useless):
> function add_output
> possible bashism in ./usr/share/ld10k1/init_live line 287 ('function' is
> useless):
> function add_output_tone_2
> possible bashism in ./usr/share/ld10k1/init_live line 294 ('function' is
> useless):
> function add_output_simple_2
> possible bashism in ./usr/share/ld10k1/init_live line 301 ('function' is
> useless):
> function add_output_prologic_2
> possible bashism in ./usr/share/ld10k1/init_live line 308 ('function' is
> useless):
> function add_output_switched_2
> possible bashism in ./usr/share/ld10k1/init_live line 317 ('function' is
> useless):
> function simple_stereo_to_51
> possible bashism in ./usr/share/ld10k1/init_live line 333 ('function' is
> useless):
> function prologic
> possible bashism in ./usr/share/ld10k1/init_live line 354 ('function' is
> useless):
> function tone
> possible bashism in ./usr/share/ld10k1/init_live line 367 ('function' is
> useless):
> function multi_playback
> possible bashism in ./usr/share/ld10k1/init_live line 386 ('function' is
> useless):
> function fxbus


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 now the default /bin/sh.

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

If you still don't know how to fix the bashisms don't hesitate to reply to
this email, or tag the bug as 'help'.

Thank you,
Raphael Geissert





More information about the Pkg-alsa-devel mailing list