<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Linux hpasm hpadu scripts call /bin/sh but use bash specific features. in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/linux-hpasm-hpadu-scripts-call-bin-sh-but-use-bash-specific/m-p/4151502#M31766</link>
    <description>&lt;!--!*#--&gt; 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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Many Thanks&lt;BR /&gt;&lt;BR /&gt;# 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&lt;BR /&gt;possible bashism in /opt/hp/support/fixperms line 18 (${foo:3[:1]}):&lt;BR /&gt;       thefile=${rline:0}&lt;BR /&gt;possible bashism in /opt/hp/support/fixperms line 35 (echo -n/-e):&lt;BR /&gt;         echo -n '.'&lt;BR /&gt;possible bashism in /opt/hp/support/fixperms line 48 (should be 'b = a'):&lt;BR /&gt;           if [[ $? == 0 ]]; then&lt;BR /&gt;possible bashism in /opt/hp/support/fixperms line 65 (echo -n/-e):&lt;BR /&gt;       echo -n '.'&lt;BR /&gt;possible bashism in /opt/hp/support/hpfdtn.sh line 51 (should be 'b = a'):&lt;BR /&gt;      if [[ $ans == "YES" ]]; then&lt;BR /&gt;possible bashism in /opt/hp/support/hpfdtn.sh line 99 (should be 'b = a'):&lt;BR /&gt;      if [[ $ans == "NO" ]]; then&lt;BR /&gt;possible bashism in /opt/hp/support/hpfdtn.sh line 111 (should be 'b = a'):&lt;BR /&gt;      if [[ $ans == "YES" ]]; then&lt;BR /&gt;possible bashism in /opt/hp/support/hpfdtn.sh line 123 (should be 'b = a'):&lt;BR /&gt;      if [[ $ans == "YES" ]]; then&lt;BR /&gt;possible bashism in /opt/hp/support/hpfdtn.sh line 135 (should be 'b = a'):&lt;BR /&gt;      if [[ $ans == "ADMINISTRATOR" ]]; then&lt;BR /&gt;possible bashism in /opt/hp/support/hpfdtn.sh line 147 (should be 'b = a'):&lt;BR /&gt;      if [[ $ans == "TRUSTBYALL" || $ans == "TRUSTBYNAME" ]]; then&lt;BR /&gt;possible bashism in /opt/hp/support/hpfdtn.sh line 180 (should be 'b = a'):&lt;BR /&gt;         if [[ $ans == "YES" ]]; then&lt;BR /&gt;possible bashism in /opt/hp/support/hpfdtn.sh line 193 (should be 'b = a'):&lt;BR /&gt;      if [[ $ans == "YES" ]]; then&lt;BR /&gt;possible bashism in /opt/hp/support/hpfdtn.sh line 219 (should be 'b = a'):&lt;BR /&gt;   if [[ $overwrite == "false" ]]; then&lt;BR /&gt;possible bashism in /opt/hp/support/hpfdtn.sh line 287 (bash arrays, ${name[0|*|@]}):&lt;BR /&gt;   for cfile in "${certarray[@]}"; do&lt;BR /&gt;possible bashism in /opt/hp/support/hpsmhd.debian line 110 (echo -n/-e):&lt;BR /&gt;                echo -n "Stopping web server: hpsmhd"&lt;BR /&gt;possible bashism in /opt/hp/support/hpsmhd.debian line 125 (echo -n/-e):&lt;BR /&gt;                echo -n "Restarting web server: hpsmhd"&lt;BR /&gt;possible bashism in /opt/hp/support/hpsmhd.debian line 141 (echo -n/-e):&lt;BR /&gt;                echo -n "Forcing reload of web server: hpsmhd"&lt;BR /&gt;possible bashism in /opt/hp/hpadu/HTML/getusb.sh line 44 (bash arrays, H[0]):&lt;BR /&gt;                xref[1]="a"; xref[2]="b"; xref[3]="c"; xref[4]="d"; xref[5]="e";&lt;BR /&gt;possible bashism in /opt/hp/hpadu/HTML/getusb.sh line 45 (bash arrays, H[0]):&lt;BR /&gt;                xref[6]="f"; xref[7]="g"; xref[8]="h"; xref[9]="i"; xref[10]="j";&lt;BR /&gt;possible bashism in /opt/hp/hpadu/HTML/getusb.sh line 46 (bash arrays, H[0]):&lt;BR /&gt;                xref[11]="k"; xref[12]="l"; xref[13]="m"; xref[14]="n"; xref[15]="o";&lt;BR /&gt;possible bashism in /opt/hp/hpadu/HTML/getusb.sh line 47 (bash arrays, H[0]):&lt;BR /&gt;                xref[16]="p"; xref[17]="q"; xref[18]="r"; xref[19]="s"; xref[20]="t";&lt;BR /&gt;possible bashism in /opt/hp/hpadu/HTML/getusb.sh line 48 (bash arrays, H[0]):&lt;BR /&gt;                xref[21]="u"; xref[22]="v"; xref[23]="w"; xref[24]="x"; xref[25]="y";&lt;BR /&gt;possible bashism in /opt/hp/hpadu/HTML/getusb.sh line 49 (bash arrays, H[0]):&lt;BR /&gt;                xref[26]="z";&lt;BR /&gt;possible bashism in /opt/hp/hpadu/HTML/getusb.sh line 68 ('((' should be '$(('):&lt;BR /&gt;                        if((index(VENDOR,"USB FDD") !=0) ||&lt;BR /&gt;possible bashism in /opt/compaq/hpasm/etc/rebuild line 51 (echo -n/-e):&lt;BR /&gt;        echo -e "\t\tCustom Build of hpasm." &amp;gt;&amp;gt; $DISTDIR/SPECS/$SPECFILE&lt;BR /&gt;possible bashism in /opt/compaq/hpasm/etc/hpasm line 135 (echo -n/-e):&lt;BR /&gt;                ARGS=`echo -n $CURRENTARGS | cut -d '|' -f $I`&lt;BR /&gt;possible bashism in /opt/compaq/hpasm/etc/hpasm line 149 (echo -n/-e):&lt;BR /&gt;                TESTSTRING=`echo -n $CURRENTSUBS | fgrep $BASENAME`&lt;BR /&gt;possible bashism in /opt/compaq/utils/hpuid_example.sh line 18 (should be 'b = a'):&lt;BR /&gt;if [ $1 == "ON" ]&lt;BR /&gt;possible bashism in /opt/compaq/utils/hpuid_example.sh line 29 (should be 'b = a'):&lt;BR /&gt;if [ $1 == "OFF" ]&lt;BR /&gt;possible bashism in /opt/compaq/utils/hpuid_example.sh line 40 (should be 'b = a'):&lt;BR /&gt;if [ $1 == "STATUS" ]</description>
    <pubDate>Wed, 27 Feb 2008 13:46:14 GMT</pubDate>
    <dc:creator>zImage</dc:creator>
    <dc:date>2008-02-27T13:46:14Z</dc:date>
    <item>
      <title>Linux hpasm hpadu scripts call /bin/sh but use bash specific features.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-hpasm-hpadu-scripts-call-bin-sh-but-use-bash-specific/m-p/4151502#M31766</link>
      <description>&lt;!--!*#--&gt; 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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Many Thanks&lt;BR /&gt;&lt;BR /&gt;# 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&lt;BR /&gt;possible bashism in /opt/hp/support/fixperms line 18 (${foo:3[:1]}):&lt;BR /&gt;       thefile=${rline:0}&lt;BR /&gt;possible bashism in /opt/hp/support/fixperms line 35 (echo -n/-e):&lt;BR /&gt;         echo -n '.'&lt;BR /&gt;possible bashism in /opt/hp/support/fixperms line 48 (should be 'b = a'):&lt;BR /&gt;           if [[ $? == 0 ]]; then&lt;BR /&gt;possible bashism in /opt/hp/support/fixperms line 65 (echo -n/-e):&lt;BR /&gt;       echo -n '.'&lt;BR /&gt;possible bashism in /opt/hp/support/hpfdtn.sh line 51 (should be 'b = a'):&lt;BR /&gt;      if [[ $ans == "YES" ]]; then&lt;BR /&gt;possible bashism in /opt/hp/support/hpfdtn.sh line 99 (should be 'b = a'):&lt;BR /&gt;      if [[ $ans == "NO" ]]; then&lt;BR /&gt;possible bashism in /opt/hp/support/hpfdtn.sh line 111 (should be 'b = a'):&lt;BR /&gt;      if [[ $ans == "YES" ]]; then&lt;BR /&gt;possible bashism in /opt/hp/support/hpfdtn.sh line 123 (should be 'b = a'):&lt;BR /&gt;      if [[ $ans == "YES" ]]; then&lt;BR /&gt;possible bashism in /opt/hp/support/hpfdtn.sh line 135 (should be 'b = a'):&lt;BR /&gt;      if [[ $ans == "ADMINISTRATOR" ]]; then&lt;BR /&gt;possible bashism in /opt/hp/support/hpfdtn.sh line 147 (should be 'b = a'):&lt;BR /&gt;      if [[ $ans == "TRUSTBYALL" || $ans == "TRUSTBYNAME" ]]; then&lt;BR /&gt;possible bashism in /opt/hp/support/hpfdtn.sh line 180 (should be 'b = a'):&lt;BR /&gt;         if [[ $ans == "YES" ]]; then&lt;BR /&gt;possible bashism in /opt/hp/support/hpfdtn.sh line 193 (should be 'b = a'):&lt;BR /&gt;      if [[ $ans == "YES" ]]; then&lt;BR /&gt;possible bashism in /opt/hp/support/hpfdtn.sh line 219 (should be 'b = a'):&lt;BR /&gt;   if [[ $overwrite == "false" ]]; then&lt;BR /&gt;possible bashism in /opt/hp/support/hpfdtn.sh line 287 (bash arrays, ${name[0|*|@]}):&lt;BR /&gt;   for cfile in "${certarray[@]}"; do&lt;BR /&gt;possible bashism in /opt/hp/support/hpsmhd.debian line 110 (echo -n/-e):&lt;BR /&gt;                echo -n "Stopping web server: hpsmhd"&lt;BR /&gt;possible bashism in /opt/hp/support/hpsmhd.debian line 125 (echo -n/-e):&lt;BR /&gt;                echo -n "Restarting web server: hpsmhd"&lt;BR /&gt;possible bashism in /opt/hp/support/hpsmhd.debian line 141 (echo -n/-e):&lt;BR /&gt;                echo -n "Forcing reload of web server: hpsmhd"&lt;BR /&gt;possible bashism in /opt/hp/hpadu/HTML/getusb.sh line 44 (bash arrays, H[0]):&lt;BR /&gt;                xref[1]="a"; xref[2]="b"; xref[3]="c"; xref[4]="d"; xref[5]="e";&lt;BR /&gt;possible bashism in /opt/hp/hpadu/HTML/getusb.sh line 45 (bash arrays, H[0]):&lt;BR /&gt;                xref[6]="f"; xref[7]="g"; xref[8]="h"; xref[9]="i"; xref[10]="j";&lt;BR /&gt;possible bashism in /opt/hp/hpadu/HTML/getusb.sh line 46 (bash arrays, H[0]):&lt;BR /&gt;                xref[11]="k"; xref[12]="l"; xref[13]="m"; xref[14]="n"; xref[15]="o";&lt;BR /&gt;possible bashism in /opt/hp/hpadu/HTML/getusb.sh line 47 (bash arrays, H[0]):&lt;BR /&gt;                xref[16]="p"; xref[17]="q"; xref[18]="r"; xref[19]="s"; xref[20]="t";&lt;BR /&gt;possible bashism in /opt/hp/hpadu/HTML/getusb.sh line 48 (bash arrays, H[0]):&lt;BR /&gt;                xref[21]="u"; xref[22]="v"; xref[23]="w"; xref[24]="x"; xref[25]="y";&lt;BR /&gt;possible bashism in /opt/hp/hpadu/HTML/getusb.sh line 49 (bash arrays, H[0]):&lt;BR /&gt;                xref[26]="z";&lt;BR /&gt;possible bashism in /opt/hp/hpadu/HTML/getusb.sh line 68 ('((' should be '$(('):&lt;BR /&gt;                        if((index(VENDOR,"USB FDD") !=0) ||&lt;BR /&gt;possible bashism in /opt/compaq/hpasm/etc/rebuild line 51 (echo -n/-e):&lt;BR /&gt;        echo -e "\t\tCustom Build of hpasm." &amp;gt;&amp;gt; $DISTDIR/SPECS/$SPECFILE&lt;BR /&gt;possible bashism in /opt/compaq/hpasm/etc/hpasm line 135 (echo -n/-e):&lt;BR /&gt;                ARGS=`echo -n $CURRENTARGS | cut -d '|' -f $I`&lt;BR /&gt;possible bashism in /opt/compaq/hpasm/etc/hpasm line 149 (echo -n/-e):&lt;BR /&gt;                TESTSTRING=`echo -n $CURRENTSUBS | fgrep $BASENAME`&lt;BR /&gt;possible bashism in /opt/compaq/utils/hpuid_example.sh line 18 (should be 'b = a'):&lt;BR /&gt;if [ $1 == "ON" ]&lt;BR /&gt;possible bashism in /opt/compaq/utils/hpuid_example.sh line 29 (should be 'b = a'):&lt;BR /&gt;if [ $1 == "OFF" ]&lt;BR /&gt;possible bashism in /opt/compaq/utils/hpuid_example.sh line 40 (should be 'b = a'):&lt;BR /&gt;if [ $1 == "STATUS" ]</description>
      <pubDate>Wed, 27 Feb 2008 13:46:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-hpasm-hpadu-scripts-call-bin-sh-but-use-bash-specific/m-p/4151502#M31766</guid>
      <dc:creator>zImage</dc:creator>
      <dc:date>2008-02-27T13:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Linux hpasm hpadu scripts call /bin/sh but use bash specific features.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-hpasm-hpadu-scripts-call-bin-sh-but-use-bash-specific/m-p/4151503#M31767</link>
      <description>As has been pointed out to me on a couple of occasions, this is "peer support" forum, and your request is likely to be better served with a direct submission to HP Support if you expect to get a response from HP.&lt;BR /&gt;&lt;BR /&gt;I know "Linux is technically just kernel" - but the vast majority of distros consider the Linux default shell to be bash, and sym link sh as such.....&lt;BR /&gt;&lt;BR /&gt;While your point has merit, I expect this will be something of "boiling the ocean" for HP to address...&lt;BR /&gt;&lt;BR /&gt;Don</description>
      <pubDate>Wed, 27 Feb 2008 15:43:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-hpasm-hpadu-scripts-call-bin-sh-but-use-bash-specific/m-p/4151503#M31767</guid>
      <dc:creator>Don Vanco - Linux Ninja</dc:creator>
      <dc:date>2008-02-27T15:43:24Z</dc:date>
    </item>
  </channel>
</rss>

