Debian Automated Code Analysis

checkbashisms analysis of busybox_1.17.1-8.dsc

possible bashism in ./modutils/depmod_process.sh line 14 (${parm/?/pat[/str]}):
    if ! test "${word/*:/}"; then
possible bashism in ./scripts/trylink line 49 ($RANDOM):
    local tempname="/tmp/temp.$$.$RANDOM"
possible bashism in ./scripts/trylink line 61 ($RANDOM):
    local tempname="/tmp/temp.$$.$RANDOM"
possible bashism in ./scripts/randomtest.loop line 16 ($RANDOM):
		dir="test.$$.$RANDOM"
possible bashism in ./scripts/randomtest.loop line 23 (let ...):
		let fail++
possible bashism in ./scripts/randomtest.loop line 37 (let ...):
	let cnt++
possible bashism in ./scripts/individual line 15 (brace expansion):
make busybox.links include/bb_config.h $(pwd)/{libbb/libbb.a,archival/libunarchive/libunarchive.a,coreutils/libcoreutils/libcoreutils.a,networking/libiproute/libiproute.a}
possible bashism in ./scripts/individual line 31 ('function' is useless):
function substithing()
possible bashism in ./scripts/individual line 33 (${parm/?/pat[/str]}):
  if [ "${1/ $3 //}" != "$1" ]
possible bashism in ./scripts/individual line 39 ('function' is useless):
function extra_libraries()
possible bashism in ./scripts/individual line 70 ('function' is useless):
function bonkname()
possible bashism in ./scripts/individual line 74 (should be 'b = a'):
    if [ "$APPLET" == "$1" ]
possible bashism in ./scripts/individual line 76 (${parm/?/pat[/str]}):
      APPFILT="${2/@*/}"
possible bashism in ./scripts/individual line 77 (should be 'b = a'):
      if [ "${APPFILT}" == "$2" ]
possible bashism in ./scripts/individual line 81 (${parm/?/pat[/str]}):
        HELPNAME="${2/*@/}"_full_usage
possible bashism in ./scripts/individual line 92 ('function' is useless):
function buildit ()
possible bashism in ./scripts/mkdiff_obj line 6 ($'...' should be "$(printf '...')"):
	sed $'s/^\\(\t*\\)[ ]*[0-9a-f][0-9a-f]*:[ \t]*/\\1/' \
	| sed 's/__GI_//g'
possible bashism in ./archival/bbunzip_test.sh line 20 ('((' should be '$(('):
    len1=$(( (((RANDOM*RANDOM)^i) & 0x7ffffff) % 100003 ))
possible bashism in ./archival/bbunzip_test.sh line 22 ('((' should be '$(('):
    len2=$(( (((RANDOM*RANDOM)^i) & 0x7ffffff) % 100003 ))
possible bashism in ./archival/bbunzip_test.sh line 39 (should be 'b = a'):
    test "$sum" == "$sum9" || {
possible bashism in ./archival/bbunzip_test.sh line 55 (should be 'b = a'):
    test "$sum" == "$sum9" || {
possible bashism in ./archival/bbunzip_test2.sh line 10 ($RANDOM):
cat /dev/urandom \
| while true; do read junk; echo "junk $RANDOM $junk"; done \
| ../busybox gzip \
| ../busybox gunzip -c >/dev/null
possible bashism in ./archival/bbunzip_test3.sh line 14 ('((' should be '$(('):
    len=$(( (((RANDOM*RANDOM)^i) & 0x7ffffff) % 100003 ))
possible bashism in ./util-linux/mkfs_ext2_test.sh line 50 ('$((n++))' should be '$n; $((n=n+1))'):
    : $((kilobytes++))
possible bashism in ./util-linux/mkfs_ext2_test.sh line 59 ('$((n++))' should be '$n; $((n=n+1))'):
    : $((kilobytes++))
possible bashism in ./util-linux/mkfs_ext2_test.sh line 68 ('$((n++))' should be '$n; $((n=n+1))'):
    : $((kilobytes++))
possible bashism in ./util-linux/mkfs_ext2_test.sh line 77 ('$((n++))' should be '$n; $((n=n+1))'):
    : $((kilobytes++))
possible bashism in ./util-linux/mkfs_ext2_test.sh line 86 ('$((n++))' should be '$n; $((n=n+1))'):
    : $((kilobytes++))
possible bashism in ./util-linux/mkfs_ext2_test.sh line 95 ('$((n++))' should be '$n; $((n=n+1))'):
    : $((kilobytes++))
possible bashism in ./shell/hush_leaktool.sh line 14 ('$((--n))' should be '$((n=n-1))'):
    test $((--i)) != 0 && continue
possible bashism in ./examples/unrpm line 32 (echo -e):
(echo -e "\nPress enter to scroll, q to Quit!\n" ; rpm2cpio $rpm | cpio -tv --quiet) | $pager
possible bashism in ./examples/undeb line 33 (echo -e):
(ar -p $deb control.tar.gz | tar -xzO *control ; echo -e "\nPress enter to scroll, q to Quit!\n" ; ar -p $deb data.tar.gz | tar -tzv) | $pager
possible bashism in ./examples/var_service/getty_tty1/cfg line 14 (echo -e):
	echo -ne "\033(K" >"$ttyname"
possible bashism in ./examples/var_service/getty_tty1/login.sh line 7 (${foo:3[:1]}):
	tail="${ttyname:8}"
possible bashism in ./examples/var_service/fw/conf/11.22.33.44.ipconf-- line 4 (let ...):
let cfg=cfg+1
possible bashism in ./examples/var_service/fw/conf/192.168.0.1.ipconf line 5 (let ...):
let cfg=cfg+1
possible bashism in ./examples/udhcp/sample.bound line 21 ('$((n++))' should be '$n; $((n=n+1))'):
		/sbin/route add default gw $i dev $interface metric $((metric++))
possible bashism in ./examples/udhcp/sample.renew line 21 ('$((n++))' should be '$n; $((n=n+1))'):
		/sbin/route add default gw $i dev $interface metric $((metric++))
possible bashism in ./examples/udhcp/simple.script line 32 ('$((n++))' should be '$n; $((n=n+1))'):
				route add default gw $i dev $interface metric $((metric++))

This report was generated on Thu, 16 Dec 2010 12:38:07 +0000, based on results by checkbashisms 2.10.65git5