Mailinglist Archive: opensuse-factory (689 mails)

< Previous Next >
Re: [opensuse-factory] Re: why are raw scripts forced into /bin/sh instead of user's shell (a Suse patch to bash)
  • From: Joerg Schilling <Joerg.Schilling@xxxxxxxxxxxxxxxxxxx>
  • Date: Fri, 1 Mar 2013 10:55:13 +0100
  • Message-id: <51307b01.ODuL3wYl/>
Yamaban <foerster@xxxxxxxx> wrote:

If a script still works with "/bin/sh -> bash", do the test again,
with "/bin/sh -> ash", as not even zsh, nor (t)csh are disabling all
the "extras" when called as /bin/sh .

If you link /bin/sh to (t)csh, you will definitely break your system as csh is
not Shell compatible at all.

The other shells are more or less compatible.... and it is good practice to
write scripts to be compatible to the Bourne Shell to avoid to depend on other
shells specifics.


EMail:joerg@xxxxxxxxxxxxxxxxxxxxxxxxxxx (home) Jörg Schilling D-13353 Berlin
js@xxxxxxxxxxxxxxx (uni)
joerg.schilling@xxxxxxxxxxxxxxxxxxx (work) Blog:
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups