Re: sh replaced by bash?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 17:20 01 Sep 2003, nape <nape@xxxxxxxxxxxx> wrote:
| it appears that on a default install, sh links to bash and sh is not installed.
| does anyone know how to get sh for redhat 9 and is there a problem replacing bash with sh?
| i tried replacing bash with ash and had some problems.

On most Linux distros sh is a bash. Bash behaves a bit more like a POSIX
shell when invoked as "sh". You should be mostly ok.

But note that on a RedHat system the authors of the startup scripts "know"
that /bin/sh is a bash, and liberally use all sorts of bashisms in their
scripts, making them nonportable (and therefore prone to failure if you
replace sh with something that's not bash).

So you're stuck with it unless you want to fix their scripts.
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

Until a man is married, he is incomplete.
After he is married, he is finished!    - Zsa Zsa Gabor


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux