Bug#471874: mdadm: bashism in /bin/sh script

Raphael Geissert atomo64 at gmail.com
Thu Mar 20 19:59:39 UTC 2008


Package: mdadm
Severity: normal
Version: 2.6.4-1
Usertags: bashisms

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 ./etc/init.d/mdadm-raid line 41 (local foo=bar):
>   local dev=${1##*/}

Not using bash as /bin/sh is likely to lead to errors or unexpected 
behaviours. 

For more information please refer to the Debian Policy section 10.4 supporting 
this argument at:
http://www.debian.org/doc/debian-policy/ch-files.html#s-scripts

[1]http://release.debian.org/lenny/goals.txt

Thank you,
-- 
Atomo64 - Raphael

Please avoid sending me Word, PowerPoint or Excel attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html





More information about the pkg-mdadm-devel mailing list