ProLiant Servers - Netservers

Linux hpasm hpadu scripts use /bin/sh but use bash specific features

 
zImage
Occasional Contributor

Linux hpasm hpadu scripts use /bin/sh but use bash specific features

Hello. I have had problems installing the debian versions of the hp tools on my departments servers. We are running Ubuntu which is probably not supported by HP, but I think this request will be helpful to other customers as well.

The install scripts and runtime tools assume that /bin/sh is a symlink to /bin/bash. On Ubuntu, /bin/sh is /bin/dash. Here is a list of files that contain bashisms but call /bin/sh. You do support debian linux and the Debian policy manual has long mandated that "shell scripts specifying '/bin/sh' as interpreter must only use POSIX features". I request that you change these scripts to either call /bin/bash or to be POSIX compliant in order to make these scripts debian compliant.

Many Thanks

# for i in `find /opt -exec file '{}' ';' | grep Bourne | sed 's/\(.*\):.*/\1/'`; do if ( head -n1 $i | grep -q '/sh' ); then checkbashisms $i; fi; done
possible bashism in /opt/hp/support/fixperms line 18 (${foo:3}):
thefile=${rline:0}
possible bashism in /opt/hp/support/fixperms line 35 (echo -n/-e):
echo -n '.'
possible bashism in /opt/hp/support/fixperms line 48 (should be 'b = a'):
if ]; then
possible bashism in /opt/hp/support/fixperms line 65 (echo -n/-e):
echo -n '.'
possible bashism in /opt/hp/support/hpfdtn.sh line 51 (should be 'b = a'):
if ]; then
possible bashism in /opt/hp/support/hpfdtn.sh line 99 (should be 'b = a'):
if ]; then
possible bashism in /opt/hp/support/hpfdtn.sh line 111 (should be 'b = a'):
if ]; then
possible bashism in /opt/hp/support/hpfdtn.sh line 123 (should be 'b = a'):
if ]; then
possible bashism in /opt/hp/support/hpfdtn.sh line 135 (should be 'b = a'):
if ]; then
possible bashism in /opt/hp/support/hpfdtn.sh line 147 (should be 'b = a'):
if ]; then
possible bashism in /opt/hp/support/hpfdtn.sh line 180 (should be 'b = a'):
if ]; then
possible bashism in /opt/hp/support/hpfdtn.sh line 193 (should be 'b = a'):
if ]; then
possible bashism in /opt/hp/support/hpfdtn.sh line 219 (should be 'b = a'):
if ]; then
possible bashism in /opt/hp/support/hpfdtn.sh line 287 (bash arrays, ${name}):
for cfile in "${certarray}"; do
possible bashism in /opt/hp/support/hpsmhd.debian line 110 (echo -n/-e):
echo -n "Stopping web server: hpsmhd"
possible bashism in /opt/hp/support/hpsmhd.debian line 125 (echo -n/-e):
echo -n "Restarting web server: hpsmhd"
possible bashism in /opt/hp/support/hpsmhd.debian line 141 (echo -n/-e):
echo -n "Forcing reload of web server: hpsmhd"
possible bashism in /opt/hp/hpadu/HTML/getusb.sh line 44 (bash arrays, H):
xref="a"; xref="b"; xref="c"; xref="d"; xref="e";
possible bashism in /opt/hp/hpadu/HTML/getusb.sh line 45 (bash arrays, H):
xref="f"; xref="g"; xref="h"; xref="i"; xref="j";
possible bashism in /opt/hp/hpadu/HTML/getusb.sh line 46 (bash arrays, H):
xref="k"; xref="l"; xref="m"; xref="n"; xref="o";
possible bashism in /opt/hp/hpadu/HTML/getusb.sh line 47 (bash arrays, H):
xref="p"; xref="q"; xref="r"; xref="s"; xref="t";
possible bashism in /opt/hp/hpadu/HTML/getusb.sh line 48 (bash arrays, H):
xref="u"; xref="v"; xref="w"; xref="x"; xref="y";
possible bashism in /opt/hp/hpadu/HTML/getusb.sh line 49 (bash arrays, H):
xref="z";
possible bashism in /opt/hp/hpadu/HTML/getusb.sh line 68 ('((' should be '$(('):
if((index(VENDOR,"USB FDD") !=0) ||
possible bashism in /opt/compaq/hpasm/etc/rebuild line 51 (echo -n/-e):
echo -e "\t\tCustom Build of hpasm." >> $DISTDIR/SPECS/$SPECFILE
possible bashism in /opt/compaq/hpasm/etc/hpasm line 135 (echo -n/-e):
ARGS=`echo -n $CURRENTARGS | cut -d '|' -f $I`
possible bashism in /opt/compaq/hpasm/etc/hpasm line 149 (echo -n/-e):
TESTSTRING=`echo -n $CURRENTSUBS | fgrep $BASENAME`
possible bashism in /opt/compaq/utils/hpuid_example.sh line 18 (should be 'b = a'):
if
possible bashism in /opt/compaq/utils/hpuid_example.sh line 29 (should be 'b = a'):
if
possible bashism in /opt/compaq/utils/hpuid_example.sh line 40 (should be 'b = a'):
if