Debian Automated Code Analysis

checkbashisms analysis of busybox_1.18.4-2.dsc

possible bashism in ./testsuite/sha256sum.tests line 3 (sourced script with arguments):
. ./md5sum.tests sha256sum 8e1d3ed57ebc130f0f72508446559eeae06451ae6d61b1e8ce46370cfb8963c3
possible bashism in ./testsuite/sha1sum.tests line 3 (sourced script with arguments):
. ./md5sum.tests sha1sum d41337e834377140ae7f98460d71d908598ef04f
possible bashism in ./testsuite/md5sum.tests line 33 ('$((n++))' should be '$n; $((n=n+1))'):
	: $((n++))
possible bashism in ./testsuite/sha512sum.tests line 3 (sourced script with arguments):
. ./md5sum.tests sha512sum fe413e0f177324d1353893ca0772ceba83fd41512ba63895a0eebb703ef9feac2fb4e92b2cb430b3bda41b46b0cb4ea8307190a5cc795157cfb680a9cd635d0f
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/find_stray_empty_lines line 6 ($'...' should be "$(printf '...')"):
grep -n -B1 -r $'^\t*}' . | grep -A1 '.[ch]-[0-9]*-$'
possible bashism in ./scripts/find_stray_empty_lines line 7 ($'...' should be "$(printf '...')"):
grep -n -A1 -r $'^\t*{' . | grep -B1 '.[ch]-[0-9]*-$'
possible bashism in ./scripts/mkdiff_obj line 15 ($'...' 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 Sat, 09 Apr 2011 06:38:16 +0000, based on results by checkbashisms 2.10.65git5