<?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 bash in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/bash/m-p/7082062#M602203</link>
    <description>&lt;P&gt;how can i set or install bash when login to root on HP-UX&amp;nbsp;B.11.11, i have&amp;nbsp;/sbin/sh set for root user. i need bash to see history and arroy keys to move across when typing commands at login prompt&lt;/P&gt;</description>
    <pubDate>Tue, 10 Mar 2020 14:27:33 GMT</pubDate>
    <dc:creator>shaw_net</dc:creator>
    <dc:date>2020-03-10T14:27:33Z</dc:date>
    <item>
      <title>bash</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bash/m-p/7082062#M602203</link>
      <description>&lt;P&gt;how can i set or install bash when login to root on HP-UX&amp;nbsp;B.11.11, i have&amp;nbsp;/sbin/sh set for root user. i need bash to see history and arroy keys to move across when typing commands at login prompt&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 14:27:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bash/m-p/7082062#M602203</guid>
      <dc:creator>shaw_net</dc:creator>
      <dc:date>2020-03-10T14:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: bash</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bash/m-p/7082073#M602204</link>
      <description>&lt;P&gt;Keep /sbin/sh as default.&lt;/P&gt;&lt;P&gt;Otherwise you may get into serious trouble.&lt;/P&gt;&lt;P&gt;Type "bash" once logged on.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 16:02:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bash/m-p/7082073#M602204</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2020-03-10T16:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: bash</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bash/m-p/7082167#M602205</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;Please note that Bash Shell does not come with HP-UX. In other words, it is available as Open Source and hence isn't supported by HPE. You may use it at your own disk and any assistance on the product should also be sought from the source or Open-Source community.&amp;nbsp;It is not recommemded for root user in specific.&lt;/P&gt;&lt;P&gt;Please check usage of SHELL variable in the respective profiles. For details kindly refer man page of login.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, applications can have their own shell exported from the respecive profile or environment files.&lt;/P&gt;&lt;P&gt;For more details on the bash shell, you may refer the link - &lt;A href="http://hpux.connect.org.uk/hppd/hpux/Shells/bash-5.0.011/man.html" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Shells/bash-5.0.011/man.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 08:47:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bash/m-p/7082167#M602205</guid>
      <dc:creator>KishJ</dc:creator>
      <dc:date>2020-03-11T08:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: bash</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bash/m-p/7082405#M602206</link>
      <description>&lt;P&gt;&amp;gt; Keep /sbin/sh as default.&lt;BR /&gt;&amp;gt; Otherwise you may get into serious trouble.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I agree.&amp;nbsp; When HP-UX starts, the only available file system may be&lt;BR /&gt;"/".&amp;nbsp; For "/sbin/sh", that should not be a problem:&lt;/P&gt;&lt;P&gt;dy# uname -a&lt;BR /&gt;HP-UX dy B.11.11 U 9000/785 2012616114 unlimited-user license&lt;/P&gt;&lt;P&gt;dy# ldd /sbin/sh&lt;BR /&gt;ldd: "/sbin/sh" is not a shared executable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; For any other shell, you might also need "/usr" (or who knows what?):&lt;/P&gt;&lt;P&gt;dy# ldd /bin/sh&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/lib/libc.2 =&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/lib/libc.2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/lib/libdld.2 =&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/lib/libdld.2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/lib/libc.2 =&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/lib/libc.2&lt;BR /&gt;&lt;BR /&gt;dy# ldd /usr/local/bin/bash&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/lib/libdld.2 =&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/lib/libdld.2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/lib/libc.2 =&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/lib/libc.2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/lib/libdld.2 =&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/lib/libdld.2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/local/lib/libiconv.sl =&amp;gt;&amp;nbsp;&amp;nbsp; /usr/local/lib/libiconv.sl&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/lib/libc.2 =&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp; /usr/lib/libc.2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/local/lib/libintl.sl =&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/local/lib/libintl.sl&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/local/lib/libiconv.sl =&amp;gt;&amp;nbsp;&amp;nbsp; /usr/local/lib/libiconv.sl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So, if you specify a normal shell, and those libraries are not&lt;BR /&gt;available, then "serious trouble".&lt;/P&gt;&lt;P&gt;&amp;gt; Type "bash" once logged on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Or, add a line like the following to (the end of) your ~/.profile"&lt;BR /&gt;file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exec bash&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If the default shell can't find "bash", then the "exec" fails, and&lt;BR /&gt;you've lost nothing (I believe).&amp;nbsp; If it _can_ find "bash", then you'll&lt;BR /&gt;be running "bash".&amp;nbsp; Options like "-i" or "-l" might be useful, but I&lt;BR /&gt;never bothered.&lt;/P&gt;&lt;P&gt;dy# echo $0&lt;BR /&gt;bash&lt;/P&gt;&lt;P&gt;dy# type history&lt;BR /&gt;history is a shell builtin&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 02:53:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bash/m-p/7082405#M602206</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2020-03-13T02:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: bash</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bash/m-p/7082488#M602207</link>
      <description>&lt;P&gt;The bash excutable is not part of HP-UX. And unfortunately, the HP-UX porting center has removed all products for HP-UX prior to 11.31 including 11.11.&lt;/P&gt;&lt;P&gt;However, HPE has been supplying many of the Open Source tools comonly found in Unix-style systems. The location is:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://h20392.www2.hpe.com/portal/swdepot/index.do" target="_blank"&gt;https://h20392.www2.hpe.com/portal/swdepot/index.do&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you search for the words: internet express, you'll see the the Open Source packages.&lt;/P&gt;&lt;P&gt;But unfortunately, HPE has removed the 11.11 version of the collection.&lt;/P&gt;&lt;P&gt;You may not be aware but HP-UX version 11.11 has been obsolete and unsupported for more than 10 years.&lt;/P&gt;&lt;P&gt;So your last resort is H. Merijn Brand's web page of Open Source packages for old systems:&lt;/P&gt;&lt;P&gt;&lt;A href="http://mirrors.develooper.com/hpux/downloads.html" target="_blank"&gt;http://mirrors.develooper.com/hpux/downloads.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Now, as mentioned, bash should not be used for the root user's shell. It cannot run in single user mode due to shared libraries. Leave root's shell as /sbin/sh which works OK in single user mode.&lt;/P&gt;&lt;P&gt;Note also that the POSIX shell (/sbin/sh) does have a history file (in $HOME/.sh_history. You may need to create it and adad two variables to /etc/profile:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;   export HISTFILE=${HISTFILE:-$HOME/.sh_history}  # if not set already
   export HISTSIZE=5000                            # history file size&lt;/LI-CODE&gt;&lt;P&gt;The history command is an alias for fc. You can see this with the type command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# type history
history is an exported alias for fc -l&lt;/LI-CODE&gt;&lt;P&gt;Note that recalling history and editing command lines is different than Linux.&lt;/P&gt;&lt;P&gt;If you don't want to learn about the POSIX shell, you can login as root and then type bash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 15:44:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bash/m-p/7082488#M602207</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2020-03-13T15:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: bash</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bash/m-p/7082502#M602208</link>
      <description>&lt;P&gt;&amp;gt; # type history&lt;BR /&gt;&amp;gt; history is an exported alias for fc -l&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I exhibited that command to demonstrate that I was running "bash",&lt;BR /&gt;not because anyone cared about "history".&amp;nbsp; Thanks for supplying the&lt;BR /&gt;other half of that demonstration.&lt;/P&gt;&lt;P&gt;&amp;gt; If you don't want to learn about the POSIX shell, [...]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Not the only possible reason.&lt;/P&gt;&lt;P&gt;&amp;gt; [...] you can login as root and then type bash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Or, as I explained, add a line to your ".profile" file, and have it&lt;BR /&gt;done automatically, when possible.&amp;nbsp; (Why automate any procedure if it&lt;BR /&gt;can be done manually?)&lt;/P&gt;&lt;P&gt;&amp;gt; [...] the HP-UX porting center has removed [...]&lt;/P&gt;&lt;P&gt;&amp;gt; [...] unfortunately, HPE has removed [...]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; I probably built mine from source using gcc.&amp;nbsp; Getting that whole tool&lt;BR /&gt;chain running now from scratch could be difficult.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 18:16:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bash/m-p/7082502#M602208</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2020-03-13T18:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: bash</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bash/m-p/7084429#M602209</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/2008107"&gt;@shaw_net&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;i need bash to see history and arroy keys to move across when typing commands at login prompt&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You can do this in the default ksh with a little customization, according to &lt;A href="https://community.hpe.com/t5/Languages-and-Scripting/HP-UX-enable-history-command-navigation/m-p/4768771#M30147" target="_blank" rel="noopener"&gt;this solution&lt;/A&gt;. It says to add these lines into your .kshrc/.shrc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;set -o emacs
alias __A='^P'
alias __B='^N'
alias __C='^F'
alias __D='^B'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that the strings within quotes are special characters. '^P' is not '^' followed by 'P', it has to be entered as Ctrl-V followed by Ctrl-P in vi.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/2008107"&gt;@shaw_net&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;how can i set or install bash when login to root on HP-UX&amp;nbsp;B.11.11, i have&amp;nbsp;/sbin/sh set for root user.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You can download it from &lt;A href="http://hpux.connect.org.uk/hppd/hpux/Shells/bash-5.0.016/" target="_blank" rel="noopener"&gt;HPUX-connect&lt;/A&gt;. Once you have it installed, use chsh to set the login shell:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;chsh /usr/bin/bash&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However as others have mentioned, it may not be good to have bash as the login shell for root.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 07:01:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bash/m-p/7084429#M602209</guid>
      <dc:creator>ranganath ramachandra</dc:creator>
      <dc:date>2020-04-08T07:01:42Z</dc:date>
    </item>
  </channel>
</rss>

