Skip to Content.
Sympa Menu

baslinux - [BL] Replacing sh with bash

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: baslinux AT lists.ibiblio.org
  • To: baslinux AT lists.ibiblio.org
  • Subject: [BL] Replacing sh with bash
  • Date: Thu, 5 Feb 2009 18:20:30 +0000 (GMT)

Sent this a couple of days ago but it seems that the little
bit of snow we've had in the UK not only closed down half
the country but also e-mail.

Hi, I have BL 3.5 installed on the hard drive and have been trying
to work out how to replace its shell with bash. Ive pkg bash and
I think its all in the right place. There is a real /bin/bash where
there was once just a symlink. Im thinking that I have to alter
one or more of the following /etc/initab, /etc/rc, /etc/profile,
/etc/passwrd or perhaps replace the busybox init with another
one. Ive tried a few combinations, for example using
"export SHELL=/bin/bash" but the results have never been quite
right. Bash might start but then down the line something goes
wrong, for example I lose the cursor. Im sure I have all the
libs that bash needs.

So what is the best way to replace sh with bash?

If you wonder why I might want to do this, two main reasons.
1. I am trying to learn bash scripting from a book I have.
2. I use Midnight commander and it doesnt work completely
with sh. Aliases are not passed and the subshell will not
work. For example, you cant run "dir" from within mc.


--
Bye now, Ian.

info@freedomnet......




Archive powered by MHonArc 2.6.24.

Top of Page