Debian Automated Code Analysis

checkbashisms analysis of haproxy_1.4.8-1.dsc

possible bashism in ./examples/init.haproxy line 22 ('$[' should be '$(('):
maxfd=$[$maxconn*2 + $maintfd]
possible bashism in ./examples/init.haproxy line 34 ('function' is useless):
function do_stop {
possible bashism in ./examples/init.haproxy line 44 ('function' is useless):
function do_status {
possible bashism in ./examples/build.cfg line 8 ('function' is useless):
function do_compile_only {
possible bashism in ./examples/build.cfg line 13 ('function' is useless):
function do_prepack {
possible bashism in ./examples/haproxy.init line 119 ($"foo" should be eval_gettext "foo"):
    echo $"Usage: $BASENAME {start|stop|restart|reload|condrestart|status|check}"
possible bashism in ./examples/haproxy-1.1.21-flx.1.pkg line 3 ('function' is useless):
function do_compile {
possible bashism in ./examples/haproxy-1.1.21-flx.1.pkg line 7 ('function' is useless):
function do_prepack {
possible bashism in ./examples/debug2ansi line 2 ($'...' should be "$(printf '...')"):
tr -d '\015' | sed -e 's,\(: Cookie:.*$\),'$'\e''\[35m\1'$'\e''\[0m,gi' -e 's,\(: Set-Cookie:.*$\),'$'\e''\[31m\1'$'\e''\[0m,gi' -e 's,\(^[^:]*:[^:]*srvhdr.*\)$,'$'\e''\[32m\1'$'\e''\[0m,i' -e 's,\(^[^:]*:[^:]*clihdr.*\)$,'$'\e''\[34m\1'$'\e''\[0m,i'

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