1753823 Members
9224 Online
108805 Solutions
New Discussion юеВ

bash shell in HP UX

 
rbarot
Occasional Advisor

bash shell in HP UX

how can I set bash shell in HP Unix ?
7 REPLIES 7
Mauro Gatti
Valued Contributor

Re: bash shell in HP UX

You can download bash from http://hpux.connect.org.uk/hppd/hpux/Shells/bash-2.05b.007/



RGDS

Mauro
Ubi maior, minor cessat!
Sunil Sharma_1
Honored Contributor

Re: bash shell in HP UX

Hi,

bash is not a part of HP UX standard distribution. You can download from www.software.hp.com or http://www.gnu.org/software/bash/bash.html#downloading

and instal it, the set your default shellas bash in /etc/passwd file.


Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Pete Randall
Outstanding Contributor

Re: bash shell in HP UX

And DO NOT set bash to be root's shell!


Pete

Pete
Trond Haugen
Honored Contributor

Re: bash shell in HP UX

I can't ressist saying "it's not supported but it works".

Have a nice weekend,
Trond
Regards,
Trond Haugen
LinkedIn
Bill Hassell
Honored Contributor

Re: bash shell in HP UX

bash works fine in HP-UX although like all non-standard shells, you need to be aware of changes. Specifically, you need to add bash's full pathname to /etc/shells. If you don't have /etc/shells, then chsh and ftp (and others) will have problems. The man page for getusershell will show you the default /etc/shells.

Note that 99% of the functionality of bash is found in /usr/bin/sh (the POSIX shell which is NOT the Bourne shell). bash adds support for non-ASCII keys like the arrow buttons and a few other edit/recall/access features. The POSIX shell has command recall and edit features just like ksh. As mentioned, limit bash to standard users, never root.


Bill Hassell, sysadmin
Mauro Gatti
Valued Contributor

Re: bash shell in HP UX

and...
if you use bash, run it with "--posix" option :-)
Ubi maior, minor cessat!
rmueller58
Valued Contributor

Re: bash shell in HP UX

Also make sure you download and install the dependencies, I had to apply several.. the are listed on the archive..