Debian Automated Code Analysis

checkbashisms analysis of apcupsd_3.14.8-2.dsc

possible bashism in ./src/win32/build-win32-cross-tools line 160 ('function' is useless):
function download_files
possible bashism in ./src/win32/build-win32-cross-tools line 200 ('function' is useless):
function download_file
possible bashism in ./src/win32/build-win32-cross-tools line 217 ('function' is useless):
function purge_existing_install
possible bashism in ./src/win32/build-win32-cross-tools line 227 ('function' is useless):
function install_libs
possible bashism in ./src/win32/build-win32-cross-tools line 248 ('function' is useless):
function extract_binutils
possible bashism in ./src/win32/build-win32-cross-tools line 261 ('function' is useless):
function configure_binutils
possible bashism in ./src/win32/build-win32-cross-tools line 269 (should be >word 2>&1):
        "$SRCDIR/$BINUTILS/configure" --prefix="$PREFIX" --target=$TARGET --disable-nls \
                --with-gcc --with-gnu-as --with-gnu-ld --disable-shared &> configure.log
possible bashism in ./src/win32/build-win32-cross-tools line 274 ('function' is useless):
function build_binutils
possible bashism in ./src/win32/build-win32-cross-tools line 278 (should be >word 2>&1):
        make CFLAGS="-O2 -fno-exceptions" LDFLAGS="-s" &> make.log
possible bashism in ./src/win32/build-win32-cross-tools line 287 ('function' is useless):
function install_binutils
possible bashism in ./src/win32/build-win32-cross-tools line 291 (should be >word 2>&1):
        make install &> make-install.log
possible bashism in ./src/win32/build-win32-cross-tools line 300 ('function' is useless):
function extract_gcc
possible bashism in ./src/win32/build-win32-cross-tools line 332 ('function' is useless):
function patch_gcc
possible bashism in ./src/win32/build-win32-cross-tools line 343 ('function' is useless):
function configure_gcc
possible bashism in ./src/win32/build-win32-cross-tools line 358 (should be >word 2>&1):
        "$SRCDIR/$GCC/configure" -v \
                --prefix="$PREFIX" --target=$TARGET \
                --with-headers="$PREFIX/$TARGET/include" \
                --with-gcc --with-gnu-ld --with-gnu-as \
                --enable-threads --disable-nls --enable-languages=$GCC_LANGS \
                --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj \
                --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug \
                --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug \
                &> configure.log
possible bashism in ./src/win32/build-win32-cross-tools line 363 ('function' is useless):
function build_gcc
possible bashism in ./src/win32/build-win32-cross-tools line 367 (should be >word 2>&1):
        make CFLAGS="-O2" CXXFLAGS="-O2" GCJFLAGS="-O2" LDFLAGS="-s" DEBUG_FLAGS="-g0" &> make.log
possible bashism in ./src/win32/build-win32-cross-tools line 374 (should be >word 2>&1):
                make "CFLAGS=-O2" "LDFLAGS=-s" gnatlib_and_tools &> make-gnatlib.log
possible bashism in ./src/win32/build-win32-cross-tools line 384 ('function' is useless):
function install_gcc
possible bashism in ./src/win32/build-win32-cross-tools line 388 (should be >word 2>&1):
        make install &> make-install.log
possible bashism in ./src/win32/build-win32-cross-tools line 397 ('function' is useless):
function do_nsis
possible bashism in ./src/win32/build-win32-cross-tools line 415 (should be >word 2>&1):
		scons PREFIX=$PREFIX install &> scons.log
possible bashism in ./src/win32/build-win32-cross-tools line 423 ('function' is useless):
function final_tweaks
possible bashism in ./platforms/freebsd/apcupsd.in line 23 (echo -e):
	echo -e "$return"
possible bashism in ./platforms/freebsd/apcupsd.in line 35 (echo -e):
	echo -e "$return"
possible bashism in ./platforms/unknown/apcupsd.in line 22 (echo -e):
	echo -e "$return"
possible bashism in ./platforms/unknown/apcupsd.in line 34 (echo -e):
	echo -e "$return"
possible bashism in ./platforms/netbsd/apcupsd.in line 23 (echo -e):
	echo -e "$return"
possible bashism in ./platforms/netbsd/apcupsd.in line 35 (echo -e):
	echo -e "$return"
possible bashism in ./platforms/etc/commok.in line 12 ($HOST(TYPE|NAME)):
MSG="$HOSTNAME Communications with UPS restored"
possible bashism in ./platforms/etc/offbattery.in line 12 ($HOST(TYPE|NAME)):
MSG="$HOSTNAME Power has returned"
possible bashism in ./platforms/etc/onbattery.in line 12 ($HOST(TYPE|NAME)):
MSG="$HOSTNAME Power Failure !!!"
possible bashism in ./platforms/etc/commfailure.in line 12 ($HOST(TYPE|NAME)):
MSG="$HOSTNAME Communications with UPS lost"
possible bashism in ./platforms/etc/changeme.in line 12 ($HOST(TYPE|NAME)):
MSG="$HOSTNAME UPS battery needs changing NOW."
possible bashism in ./platforms/slackware/apcupsd.in line 27 (echo -e):
	echo -e "$return"
possible bashism in ./platforms/slackware/apcupsd.in line 39 (echo -e):
	echo -e "$return"
possible bashism in ./platforms/debian/packageinfo/postinst line 3 (should be >word 2>&1):
update-rc.d apcupsd start 20 1 2 3 4 5 . stop 20 0 1 6 . &>/dev/null
possible bashism in ./platforms/debian/examples/cron.daily line 15 (should be >word 2>&1):
/etc/init.d/apcupsd restart &>/dev/null
possible bashism in ./platforms/hpux/apcupsd.in line 25 (echo -e):
	echo -e "$return"
possible bashism in ./platforms/hpux/apcupsd.in line 37 (echo -e):
	echo -e "$return"
possible bashism in ./platforms/qnx/apcupsd.in line 22 (echo -e):
	echo -e "$return"
possible bashism in ./platforms/qnx/apcupsd.in line 34 (echo -e):
	echo -e "$return"
possible bashism in ./platforms/openbsd/apcupsd.in line 21 (echo -e):
	echo -e "$return"
possible bashism in ./platforms/openbsd/apcupsd.in line 32 (echo -e):
	echo -e "$return"
possible bashism in ./platforms/darwin/apcupsd-uninstall line 10 (read with option other than -r):
read -p "Are you sure you want to uninstall apcupsd? [Y/N] " confirm
possible bashism in ./examples/onbattery.cpufreq line 39 ($HOST(TYPE|NAME)):
MSG="$HOSTNAME Power Failure!"
possible bashism in ./examples/offbattery.cpufreq line 26 ($HOST(TYPE|NAME)):
MSG="$HOSTNAME Power has returned"

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