Debian Automated Code Analysis

checkbashisms analysis of lustre_1.8.3-4.dsc

possible bashism in ./configure line 4194 (should be 'b = a'):
if test $target_cpu == "powerpc64"; then
possible bashism in ./configure line 9405 (should be 'b = a'):
if test x$enable_health_write == xyes ; then
possible bashism in ./configure line 9443 (should be 'b = a'):
if test x$enable_adaptive_timeouts == xyes; then
possible bashism in ./configure line 9462 (should be 'b = a'):
if test x$enable_delayed_recovery == xyes; then
possible bashism in ./configure line 17040 (should be 'b = a'):
if test $target_cpu == "i686" -o $target_cpu == "x86_64"; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 40 ('function' is useless):
function ls_grab_control()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 43 (should be 'b = a'):
	if [ "$OCOMM" == "" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 53 (should be 'b = a'):
		if [ "$COMM" == "$OCOMM" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 75 ('function' is useless):
function ls_release_control()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 83 ('function' is useless):
function ls_atexit()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 91 ('function' is useless):
function usr1signal()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 96 ('function' is useless):
function idle_collector()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 108 ('function' is useless):
function run_collector()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 125 (should be >word 2>&1):
	$cfunc $@ </dev/null >&${OUTPREFIX}${ctype}.${pid}
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 135 ('function' is useless):
function vmstat_collector()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 139 (let ...):
	if let "VMSTAT_INTERVAL==0"; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 145 (let ...):
	elif let "VMSTAT_INTERVAL>0"; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 153 ('function' is useless):
function vmstat_start()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 155 (should be 'b = a'):
	if [ "$VMSTAT_INTERVAL" == "" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 169 ('function' is useless):
function brw_collector()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 180 (let ...):
	if let "BRW_INTERVAL==0"; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 184 (let ...):
	elif let "BRW_INTERVAL>0"; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 195 ('function' is useless):
function brw_start()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 197 (should be 'b = a'):
	if [ "$BRW_INTERVAL" == "" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 204 (should be 'b = a'):
		if [ "$filter" == "num_refs" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 218 ('function' is useless):
function service_collector()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 229 (let ...):
	if let "SERVICE_INTERVAL==0"; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 233 (let ...):
	elif let "SERVICE_INTERVAL>0"; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 244 ('function' is useless):
function service_start()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 246 (should be 'b = a'):
	if [ "$SERVICE_INTERVAL" == "" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 253 (should be 'b = a'):
		if [ "$target" == "num_refs" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 258 (should be 'b = a'):
			if [ "$srv" == "uuid" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 281 ('function' is useless):
function client_collector()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 292 (let ...):
	if let "CLIENT_INTERVAL==0"; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 296 (let ...):
	elif let "CLIENT_INTERVAL>0"; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 307 ('function' is useless):
function client_start()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 309 (should be 'b = a'):
	if [ "$CLIENT_INTERVAL" == "" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 316 (should be 'b = a'):
		if [ "$target" == "num_refs" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 321 (should be 'b = a'):
			if [ "$stats" == "stats" -o "$stats" == "rpc_stats" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 321 (should be 'b = a'):
			if [ "$stats" == "stats" -o "$stats" == "rpc_stats" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 332 (should be 'b = a'):
			if [ "$stats" == "stats" -o "$stats" == "vfs_ops_stats" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 332 (should be 'b = a'):
			if [ "$stats" == "stats" -o "$stats" == "vfs_ops_stats" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 347 ('function' is useless):
function sdio_collector()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 360 (let ...):
	if let "SDIO_INTERVAL==0"; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 364 (let ...):
	elif let "SDIO_INTERVAL>0"; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 375 ('function' is useless):
function sdio_start()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 377 (should be 'b = a'):
	if [ "$SDIO_INTERVAL" == "" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 384 (should be 'b = a'):
		if [ "$obd" == "num_refs" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 406 ('function' is useless):
function mballoc_collector()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 421 (let ...):
	if let "MBALLOC_INTERVAL==0"; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 424 (let ...):
	elif let "MBALLOC_INTERVAL>0"; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 433 ('function' is useless):
function mballoc_start()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 435 (should be 'b = a'):
	if [ "$MBALLOC_INTERVAL" == "" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 442 (should be 'b = a'):
		if [ "$obd" == "num_refs" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 464 ('function' is useless):
function io_collector()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 474 (let ...):
	if let "IO_INTERVAL==0"; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 478 (let ...):
	elif let "IO_INTERVAL>0"; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 489 ('function' is useless):
function io_start()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 491 (should be 'b = a'):
	if [ "$IO_INTERVAL" == "" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 498 (should be 'b = a'):
		if [ "$obd" == "num_refs" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 520 ('function' is useless):
function jbd_collector()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 530 (let ...):
	if let "JBD_INTERVAL==0"; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 533 (let ...):
	elif let "JBD_INTERVAL>0"; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 542 ('function' is useless):
function jbd_start()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 544 (should be 'b = a'):
	if [ "$JBD_INTERVAL" == "" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 551 (should be 'b = a'):
		if [ "$obd" == "num_refs" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 569 ('function' is useless):
function ls_start()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 581 (should be 'b = a'):
			if [ "$TO" != "" -a "$TO" == "$TN" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 581 (should be 'b = a'):
			if [ "$TO" != "" -a "$TO" == "$TN" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 606 ('function' is useless):
function ls_stop()
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 619 (should be 'b = a'):
			if [ "$TO" == "" -o "$TO" != "$TN" ]; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 630 (should be 'b = a'):
			while [ "$TO" != "" -a "$TO" == "$TN" ]; do
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 630 (should be 'b = a'):
			while [ "$TO" != "" -a "$TO" == "$TN" ]; do
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 662 (let ...):
	let found=0
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 665 (let ...):
		let "found++"
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 668 (let ...):
	if let "found > 0"; then
possible bashism in ./lustre-iokit/stats-collect/lstats.sh line 683 ('function' is useless):
function ls_abort()
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 33 ($"foo" should be eval_gettext "foo"):
	printf $"Usage: gather_stats_everywhere [-help] config_file [start|stop|cleanup] <log_name>\n"
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 211 ($PIPESTATUS):
        if [ ${PIPESTATUS[0]} != 0 ]; then
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 211 (bash arrays, ${name[0|*|@]}):
        if [ ${PIPESTATUS[0]} != 0 ]; then
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 244 ($PIPESTATUS):
	if [ ${PIPESTATUS[0]} != 0 ]; then
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 244 (bash arrays, ${name[0|*|@]}):
	if [ ${PIPESTATUS[0]} != 0 ]; then
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 262 ($PIPESTATUS):
	if [ ${PIPESTATUS[0]} != 0 ]; then
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 262 (bash arrays, ${name[0|*|@]}):
	if [ ${PIPESTATUS[0]} != 0 ]; then
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 314 (local -opt):
	local -a pids_array
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 315 (local -opt):
	local -a clients_array
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 332 (let ...):
                let n=$n+1
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 338 ('((' should be '$(('):
	for ((n=0; $n < $num_pids; n++)); do
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 351 ($PIPESTATUS):
       	if [ ${PIPESTATUS[0]} == 0 ]; then
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 351 (bash arrays, ${name[0|*|@]}):
       	if [ ${PIPESTATUS[0]} == 0 ]; then
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 362 (local -opt):
	local -a pids_array
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 363 (local -opt):
	local -a clients_array
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 372 (let ...):
	        let n=$n+1
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 377 ('((' should be '$(('):
	for ((n=0; $n < $num_pids; n++)); do
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 388 (local -opt):
	local -a pids_array
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 389 (local -opt):
	local -a clients_array
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 421 (let ...):
	        let n=$n+1
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 428 ('((' should be '$(('):
	for ((n=0; $n < $num_pids; n++)); do
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 431 (let ...):
			let RC=$RC+1
possible bashism in ./lustre-iokit/stats-collect/gather_stats_everywhere.sh line 542 (should be 'b = a'):
					if [ "$option" == "csv" ]; then
possible bashism in ./libsysio/configure line 3692 (should be 'b = a'):
if test ${target_cpu} == "powerpc64"; then
possible bashism in ./lustre/scripts/lc_mon line 96 (declare):
declare -a HOSTS
possible bashism in ./lustre/scripts/lc_mon line 97 (declare):
declare -a OBJS
possible bashism in ./lustre/scripts/lc_mon line 123 (bash arrays, ${name[0|*|@]}):
for obj in ${OBJS[@]}
possible bashism in ./lustre/scripts/lc_mon line 125 (bash arrays, ${name[0|*|@]}):
    echo "hostgroup ${obj}-obj ${HOSTS[@]}" >> $TMPMONCFG
possible bashism in ./lustre/scripts/lc_mon line 126 (bash arrays, ${name[0|*|@]}):
    echo "hostgroup ${obj}-mon ${HOSTS[@]}" >> $TMPMONCFG
possible bashism in ./lustre/scripts/lc_mon line 132 (bash arrays, ${name[0|*|@]}):
for obj in ${OBJS[@]}
possible bashism in ./lustre/tests/mdsrate-stat-large.sh line 34 (${parm/?/pat[/str]}):
NUM_CLIENTS=$(get_node_count ${NODES_TO_USE//,/ })
possible bashism in ./lustre/tests/mdsrate-stat-large.sh line 68 ($PIPESTATUS):
    [ ${PIPESTATUS[0]} != 0 ] && error "mdsrate file creation failed, aborting"
possible bashism in ./lustre/tests/mdsrate-stat-large.sh line 68 (bash arrays, ${name[0|*|@]}):
    [ ${PIPESTATUS[0]} != 0 ] && error "mdsrate file creation failed, aborting"
possible bashism in ./lustre/tests/mdsrate-stat-large.sh line 85 ($PIPESTATUS):
    if [ ${PIPESTATUS[0]} != 0 ]; then
possible bashism in ./lustre/tests/mdsrate-stat-large.sh line 85 (bash arrays, ${name[0|*|@]}):
    if [ ${PIPESTATUS[0]} != 0 ]; then
possible bashism in ./lustre/tests/mdsrate-stat-large.sh line 101 ($PIPESTATUS):
    if [ ${PIPESTATUS[0]} != 0 ]; then
possible bashism in ./lustre/tests/mdsrate-stat-large.sh line 101 (bash arrays, ${name[0|*|@]}):
    if [ ${PIPESTATUS[0]} != 0 ]; then
possible bashism in ./lustre/tests/insanity.sh line 30 ($HOST(TYPE|NAME)):
SINGLECLIENT=${SINGLECLIENT:-$HOSTNAME}
possible bashism in ./lustre/tests/insanity.sh line 52 (bash arrays, ${name[0|*|@]}):
FAIL_NUM=${#FAIL_LIST[*]}
possible bashism in ./lustre/tests/insanity.sh line 54 (typeset):
typeset -i  FAIL_NEXT
possible bashism in ./lustre/tests/lnet-selftest.sh line 69 (${parm/?/pat[/str]}):
    local nc=$(echo ${clients//,/ } | wc -w)
possible bashism in ./lustre/tests/lnet-selftest.sh line 70 (${parm/?/pat[/str]}):
    local ns=$(echo ${servers//,/ } | wc -w)
possible bashism in ./lustre/tests/lnet-selftest.sh line 145 ($PIPESTATUS):
    rc=${PIPESTATUS[0]}
possible bashism in ./lustre/tests/lnet-selftest.sh line 145 (bash arrays, ${name[0|*|@]}):
    rc=${PIPESTATUS[0]}
possible bashism in ./lustre/tests/rundbench line 59 (should be 'b = a'):
if [ "x$CHROOT" == "xyes" ]; then
possible bashism in ./lustre/tests/rundbench line 64 ($PIPESTATUS):
	if [ "${PIPESTATUS[*]}" != "0 0" ]; then
possible bashism in ./lustre/tests/rundbench line 64 (bash arrays, ${name[0|*|@]}):
	if [ "${PIPESTATUS[*]}" != "0 0" ]; then
possible bashism in ./lustre/tests/llog-test.sh line 39 (should be 'b = a'):
if [ "$ONLY" == "cleanup" ]; then
possible bashism in ./lustre/tests/acl/make-tree line 9 ('function' is useless):
function random_dir() {
possible bashism in ./lustre/tests/acl/make-tree line 14 ('function' is useless):
function random_file() {
possible bashism in ./lustre/tests/acl/make-tree line 19 ('function' is useless):
function create () {
possible bashism in ./lustre/tests/acl/make-tree line 25 ('$[' should be '$(('):
			I=$[$I+1]
possible bashism in ./lustre/tests/acl/make-tree line 32 ('$[' should be '$(('):
			create $[$LEVEL-1]
possible bashism in ./lustre/tests/acl/make-tree line 34 ('$[' should be '$(('):
			I=$[$I+1]
possible bashism in ./ldiskfs/configure line 3961 (should be 'b = a'):
if test $target_cpu == "powerpc64"; then
possible bashism in ./ldiskfs/configure line 5382 (${parm/?/pat[/str]}):
BACKFSU=${BACKFS/ext/EXT}
possible bashism in ./ldiskfs/build/lmake line 57 ((push|pop)d):
    pushd $1 >/dev/null
possible bashism in ./ldiskfs/build/lmake line 59 ((push|pop)d):
    popd >/dev/null
possible bashism in ./ldiskfs/build/lmake line 186 ('((' should be '$(('):
    (( $BUILD_LUSTRE || $BUILD_KERNEL || $DEPEND_KERNEL || \
	    $INSTALL_LUSTRE || $INSTALL_KERNEL || $SAVE_HEADERS || \
	    $UNPACK_KERNEL )) || \
		fatal 1 "No commands specified."
possible bashism in ./ldiskfs/build/lmake line 188 ('((' should be '$(('):
    if (( $UNPACK_KERNEL )) ; then
possible bashism in ./ldiskfs/build/lmake line 195 ('((' should be '$(('):
    if (( $INSTALL_LUSTRE || $INSTALL_KERNEL || $SAVE_HEADERS )) ; then
possible bashism in ./ldiskfs/build/lmake line 210 (should be 'b = a'):
    if [ ! "$RPMBUILD" -o "$RPMBUILD" == "" ]; then
possible bashism in ./ldiskfs/build/lmake line 210 (should be 'b = a'):
    if [ ! "$RPMBUILD" -o "$RPMBUILD" == "" ]; then
possible bashism in ./ldiskfs/build/lmake line 212 (should be 'b = a'):
	if [ ! "$RPMBUILD" -o "$RPMBUILD" == "" ]; then
possible bashism in ./ldiskfs/build/lmake line 212 (should be 'b = a'):
	if [ ! "$RPMBUILD" -o "$RPMBUILD" == "" ]; then
possible bashism in ./ldiskfs/build/lmake line 285 (should be 'b = a'):
    if [ "$TARGET" == "2.6-suse" -o "$TARGET" == "2.6-rhel4" ]; then
possible bashism in ./ldiskfs/build/lmake line 285 (should be 'b = a'):
    if [ "$TARGET" == "2.6-suse" -o "$TARGET" == "2.6-rhel4" ]; then
possible bashism in ./ldiskfs/build/lmake line 286 (should be 'b = a'):
        if [ "$TARGET_ARCH" == "x86_64" ]; then
possible bashism in ./ldiskfs/build/lmake line 293 (alternative test command ([[ foo ]] should be [ foo ])):
        [[ $CC != ccache\ * ]] && CC="$CCACHE $CC"
possible bashism in ./ldiskfs/build/lmake line 330 ('((' should be '$(('):
    (( $UNPACK_KERNEL )) || return 0
possible bashism in ./ldiskfs/build/lmake line 331 ((push|pop)d):
    pushd "$TOPDIR" >/dev/null
possible bashism in ./ldiskfs/build/lmake line 338 ((push|pop)d):
    popd >/dev/null
possible bashism in ./ldiskfs/build/lmake line 343 ('((' should be '$(('):
    (( $UNPACK_KERNEL )) || return 0
possible bashism in ./ldiskfs/build/lmake line 345 ((push|pop)d):
    pushd "$TOPDIR/linux" >/dev/null
possible bashism in ./ldiskfs/build/lmake line 349 ('$(< foo)' should be '$(cat foo)'):
	for patch in $(<"$SERIES_FILE") ; do
possible bashism in ./ldiskfs/build/lmake line 358 ((push|pop)d):
    popd >/dev/null
possible bashism in ./ldiskfs/build/lmake line 365 (should be 'b = a'):
        if [ "$TARGET_ARCH" == "ppc64" ] ; then
possible bashism in ./ldiskfs/build/lmake line 404 ($PIPESTATUS):
    status=${PIPESTATUS[0]}
possible bashism in ./ldiskfs/build/lmake line 404 (bash arrays, ${name[0|*|@]}):
    status=${PIPESTATUS[0]}
possible bashism in ./ldiskfs/build/lmake line 411 ('((' should be '$(('):
    (( $DEPEND_KERNEL )) || return 0
possible bashism in ./ldiskfs/build/lmake line 415 ((push|pop)d):
    pushd "$TOPDIR/linux" >/dev/null
possible bashism in ./ldiskfs/build/lmake line 446 ($PIPESTATUS):
        local RC=${PIPESTATUS[0]}
possible bashism in ./ldiskfs/build/lmake line 446 (bash arrays, ${name[0|*|@]}):
        local RC=${PIPESTATUS[0]}
possible bashism in ./ldiskfs/build/lmake line 476 (echo -e):
        echo -e "\n\nPlease consider updating $CONFIG_FILE for version: $extra_version."
possible bashism in ./ldiskfs/build/lmake line 501 ('((' should be '$(('):
    (( $BUILD_KERNEL )) || return 0
possible bashism in ./ldiskfs/build/lmake line 521 ((push|pop)d):
    popd >/dev/null
possible bashism in ./ldiskfs/build/lmake line 526 ('((' should be '$(('):
    (( $BUILD_KERNEL )) || return 0
possible bashism in ./ldiskfs/build/lmake line 553 ((push|pop)d):
    pushd "$TOPDIR" >/dev/null
possible bashism in ./ldiskfs/build/lmake line 557 (${parm/?/pat[/str]}):
    local rpm=$(ls $(lbuild_topdir)/RPMS/*/kernel-ib-devel-*-${FULL_VERSION//-/_}.*.rpm)
possible bashism in ./ldiskfs/build/lmake line 560 ((push|pop)d):
    popd >/dev/null
possible bashism in ./ldiskfs/build/lmake line 567 ('((' should be '$(('):
    (( $BUILD_LUSTRE )) || return 0
possible bashism in ./ldiskfs/build/lmake line 568 ((push|pop)d):
    pushd "$TOPDIR" >/dev/null
possible bashism in ./ldiskfs/build/lmake line 573 ((push|pop)d):
    popd >/dev/null
possible bashism in ./ldiskfs/build/lmake line 578 ('((' should be '$(('):
    (( $BUILD_LUSTRE )) || return 0
possible bashism in ./ldiskfs/build/lmake line 580 ((push|pop)d):
    pushd "$TOPDIR" >/dev/null
possible bashism in ./ldiskfs/build/lmake line 586 (${parm/?/pat[/str]}):
    sed \
	-e s^@VERSION@^${LUSTRE_VERSION}^g \
	-e s^@LINUXRELEASE@^${FULL_VERSION}^g \
	-e s^@RELEASE@^${FULL_VERSION//-/_}^g \
	< lustre.spec.in \
	> lustre.spec
possible bashism in ./ldiskfs/build/lmake line 603 ((push|pop)d):
    popd >/dev/null
possible bashism in ./ldiskfs/build/lmake line 608 ('((' should be '$(('):
    (( $INSTALL_KERNEL )) || return 0
possible bashism in ./ldiskfs/build/lmake line 610 ((push|pop)d):
    pushd "$TOPDIR/linux" >/dev/null
possible bashism in ./ldiskfs/build/lmake line 664 ((push|pop)d):
    popd >/dev/null
possible bashism in ./ldiskfs/build/lmake line 669 ('((' should be '$(('):
    (( $INSTALL_LUSTRE )) || return 0
possible bashism in ./ldiskfs/build/lmake line 677 ('((' should be '$(('):
    if (( $LINUX26 )) ; then
possible bashism in ./ldiskfs/build/lmake line 687 ('((' should be '$(('):
    (( $INSTALL_LUSTRE )) || return 0
possible bashism in ./ldiskfs/build/lmake line 690 ((push|pop)d):
    pushd "$TOPDIR" >/dev/null
possible bashism in ./ldiskfs/build/lmake line 692 ((push|pop)d):
    popd >/dev/null
possible bashism in ./ldiskfs/build/lmake line 697 ('((' should be '$(('):
    (( $BUILD_KERNEL )) || return 0
possible bashism in ./ldiskfs/build/lmake line 698 ('((' should be '$(('):
    (( $SUSEBUILD )) || return 0
possible bashism in ./ldiskfs/build/lmake line 721 ('((' should be '$(('):
    (( $INSTALL_KERNEL )) || return 0
possible bashism in ./ldiskfs/build/lmake line 722 ('((' should be '$(('):
    (( $LINUX26 )) || return 0
possible bashism in ./ldiskfs/build/lmake line 750 ('((' should be '$(('):
    (( $SAVE_HEADERS )) || return 0
possible bashism in ./ldiskfs/build/lmake line 753 ((push|pop)d):
    pushd linux >/dev/null
possible bashism in ./ldiskfs/build/lmake line 765 ((push|pop)d):
    popd >/dev/null
possible bashism in ./ldiskfs/build/lmake line 770 ('((' should be '$(('):
    (( $SAVE_HEADERS )) || return 0
possible bashism in ./ldiskfs/build/lmake line 892 (alternative test command ([[ foo ]] should be [ foo ])):
            if [[ \ $@\  == *\ --disable-tests\ * ]]; then
possible bashism in ./ldiskfs/build/lmake line 892 (should be 'b = a'):
            if [[ \ $@\  == *\ --disable-tests\ * ]]; then
possible bashism in ./build/lmake line 57 ((push|pop)d):
    pushd $1 >/dev/null
possible bashism in ./build/lmake line 59 ((push|pop)d):
    popd >/dev/null
possible bashism in ./build/lmake line 186 ('((' should be '$(('):
    (( $BUILD_LUSTRE || $BUILD_KERNEL || $DEPEND_KERNEL || \
	    $INSTALL_LUSTRE || $INSTALL_KERNEL || $SAVE_HEADERS || \
	    $UNPACK_KERNEL )) || \
		fatal 1 "No commands specified."
possible bashism in ./build/lmake line 188 ('((' should be '$(('):
    if (( $UNPACK_KERNEL )) ; then
possible bashism in ./build/lmake line 195 ('((' should be '$(('):
    if (( $INSTALL_LUSTRE || $INSTALL_KERNEL || $SAVE_HEADERS )) ; then
possible bashism in ./build/lmake line 210 (should be 'b = a'):
    if [ ! "$RPMBUILD" -o "$RPMBUILD" == "" ]; then
possible bashism in ./build/lmake line 210 (should be 'b = a'):
    if [ ! "$RPMBUILD" -o "$RPMBUILD" == "" ]; then
possible bashism in ./build/lmake line 212 (should be 'b = a'):
	if [ ! "$RPMBUILD" -o "$RPMBUILD" == "" ]; then
possible bashism in ./build/lmake line 212 (should be 'b = a'):
	if [ ! "$RPMBUILD" -o "$RPMBUILD" == "" ]; then
possible bashism in ./build/lmake line 285 (should be 'b = a'):
    if [ "$TARGET" == "2.6-suse" -o "$TARGET" == "2.6-rhel4" ]; then
possible bashism in ./build/lmake line 285 (should be 'b = a'):
    if [ "$TARGET" == "2.6-suse" -o "$TARGET" == "2.6-rhel4" ]; then
possible bashism in ./build/lmake line 286 (should be 'b = a'):
        if [ "$TARGET_ARCH" == "x86_64" ]; then
possible bashism in ./build/lmake line 293 (alternative test command ([[ foo ]] should be [ foo ])):
        [[ $CC != ccache\ * ]] && CC="$CCACHE $CC"
possible bashism in ./build/lmake line 330 ('((' should be '$(('):
    (( $UNPACK_KERNEL )) || return 0
possible bashism in ./build/lmake line 331 ((push|pop)d):
    pushd "$TOPDIR" >/dev/null
possible bashism in ./build/lmake line 338 ((push|pop)d):
    popd >/dev/null
possible bashism in ./build/lmake line 343 ('((' should be '$(('):
    (( $UNPACK_KERNEL )) || return 0
possible bashism in ./build/lmake line 345 ((push|pop)d):
    pushd "$TOPDIR/linux" >/dev/null
possible bashism in ./build/lmake line 349 ('$(< foo)' should be '$(cat foo)'):
	for patch in $(<"$SERIES_FILE") ; do
possible bashism in ./build/lmake line 358 ((push|pop)d):
    popd >/dev/null
possible bashism in ./build/lmake line 365 (should be 'b = a'):
        if [ "$TARGET_ARCH" == "ppc64" ] ; then
possible bashism in ./build/lmake line 404 ($PIPESTATUS):
    status=${PIPESTATUS[0]}
possible bashism in ./build/lmake line 404 (bash arrays, ${name[0|*|@]}):
    status=${PIPESTATUS[0]}
possible bashism in ./build/lmake line 411 ('((' should be '$(('):
    (( $DEPEND_KERNEL )) || return 0
possible bashism in ./build/lmake line 415 ((push|pop)d):
    pushd "$TOPDIR/linux" >/dev/null
possible bashism in ./build/lmake line 446 ($PIPESTATUS):
        local RC=${PIPESTATUS[0]}
possible bashism in ./build/lmake line 446 (bash arrays, ${name[0|*|@]}):
        local RC=${PIPESTATUS[0]}
possible bashism in ./build/lmake line 476 (echo -e):
        echo -e "\n\nPlease consider updating $CONFIG_FILE for version: $extra_version."
possible bashism in ./build/lmake line 501 ('((' should be '$(('):
    (( $BUILD_KERNEL )) || return 0
possible bashism in ./build/lmake line 521 ((push|pop)d):
    popd >/dev/null
possible bashism in ./build/lmake line 526 ('((' should be '$(('):
    (( $BUILD_KERNEL )) || return 0
possible bashism in ./build/lmake line 553 ((push|pop)d):
    pushd "$TOPDIR" >/dev/null
possible bashism in ./build/lmake line 557 (${parm/?/pat[/str]}):
    local rpm=$(ls $(lbuild_topdir)/RPMS/*/kernel-ib-devel-*-${FULL_VERSION//-/_}.*.rpm)
possible bashism in ./build/lmake line 560 ((push|pop)d):
    popd >/dev/null
possible bashism in ./build/lmake line 567 ('((' should be '$(('):
    (( $BUILD_LUSTRE )) || return 0
possible bashism in ./build/lmake line 568 ((push|pop)d):
    pushd "$TOPDIR" >/dev/null
possible bashism in ./build/lmake line 573 ((push|pop)d):
    popd >/dev/null
possible bashism in ./build/lmake line 578 ('((' should be '$(('):
    (( $BUILD_LUSTRE )) || return 0
possible bashism in ./build/lmake line 580 ((push|pop)d):
    pushd "$TOPDIR" >/dev/null
possible bashism in ./build/lmake line 586 (${parm/?/pat[/str]}):
    sed \
	-e s^@VERSION@^${LUSTRE_VERSION}^g \
	-e s^@LINUXRELEASE@^${FULL_VERSION}^g \
	-e s^@RELEASE@^${FULL_VERSION//-/_}^g \
	< lustre.spec.in \
	> lustre.spec
possible bashism in ./build/lmake line 603 ((push|pop)d):
    popd >/dev/null
possible bashism in ./build/lmake line 608 ('((' should be '$(('):
    (( $INSTALL_KERNEL )) || return 0
possible bashism in ./build/lmake line 610 ((push|pop)d):
    pushd "$TOPDIR/linux" >/dev/null
possible bashism in ./build/lmake line 664 ((push|pop)d):
    popd >/dev/null
possible bashism in ./build/lmake line 669 ('((' should be '$(('):
    (( $INSTALL_LUSTRE )) || return 0
possible bashism in ./build/lmake line 677 ('((' should be '$(('):
    if (( $LINUX26 )) ; then
possible bashism in ./build/lmake line 687 ('((' should be '$(('):
    (( $INSTALL_LUSTRE )) || return 0
possible bashism in ./build/lmake line 690 ((push|pop)d):
    pushd "$TOPDIR" >/dev/null
possible bashism in ./build/lmake line 692 ((push|pop)d):
    popd >/dev/null
possible bashism in ./build/lmake line 697 ('((' should be '$(('):
    (( $BUILD_KERNEL )) || return 0
possible bashism in ./build/lmake line 698 ('((' should be '$(('):
    (( $SUSEBUILD )) || return 0
possible bashism in ./build/lmake line 721 ('((' should be '$(('):
    (( $INSTALL_KERNEL )) || return 0
possible bashism in ./build/lmake line 722 ('((' should be '$(('):
    (( $LINUX26 )) || return 0
possible bashism in ./build/lmake line 750 ('((' should be '$(('):
    (( $SAVE_HEADERS )) || return 0
possible bashism in ./build/lmake line 753 ((push|pop)d):
    pushd linux >/dev/null
possible bashism in ./build/lmake line 765 ((push|pop)d):
    popd >/dev/null
possible bashism in ./build/lmake line 770 ('((' should be '$(('):
    (( $SAVE_HEADERS )) || return 0
possible bashism in ./build/lmake line 892 (alternative test command ([[ foo ]] should be [ foo ])):
            if [[ \ $@\  == *\ --disable-tests\ * ]]; then
possible bashism in ./build/lmake line 892 (should be 'b = a'):
            if [[ \ $@\  == *\ --disable-tests\ * ]]; then

This report was generated on Fri, 17 Dec 2010 02:38:12 +0000, based on results by checkbashisms 2.10.65git5