Debian Automated Code Analysis

checkbashisms analysis of haproxy_1.4.8-1_i386.deb

possible bashism in ./usr/share/doc/haproxy/examples/init.haproxy line 22 ('$[' should be '$(('):
maxfd=$[$maxconn*2 + $maintfd]
possible bashism in ./usr/share/doc/haproxy/examples/init.haproxy line 34 ('function' is useless):
function do_stop {
possible bashism in ./usr/share/doc/haproxy/examples/init.haproxy line 44 ('function' is useless):
function do_status {
possible bashism in ./usr/share/doc/haproxy/examples/haproxy-1.1.21-flx.1.pkg line 3 ('function' is useless):
function do_compile {
possible bashism in ./usr/share/doc/haproxy/examples/haproxy-1.1.21-flx.1.pkg line 7 ('function' is useless):
function do_prepack {
possible bashism in ./usr/share/doc/haproxy/examples/haproxy.init line 119 ($"foo" should be eval_gettext "foo"):
    echo $"Usage: $BASENAME {start|stop|restart|reload|condrestart|status|check}"
possible bashism in ./usr/share/doc/haproxy/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'
possible bashism in ./usr/share/doc/haproxy/examples/build.cfg line 8 ('function' is useless):
function do_compile_only {
possible bashism in ./usr/share/doc/haproxy/examples/build.cfg line 13 ('function' is useless):
function do_prepack {

This report was generated on Sat, 18 Dec 2010 00:54:15 +0000, based on results by checkbashisms 2.10.65git5