Mailinglist Archive: opensuse-factory (689 mails)

< Previous Next >
[opensuse-factory] Re: why are raw scripts forced into /bin/sh instead of user's shell (a Suse patch to bash)
Joerg Schilling wrote:
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
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
shells specifics.
So you are saying people should avoid Perl, Java and Python?

They are all scripting languages. Just like Bash is a
scripting language. however, linking /bin/sh to "/bin/dash" wouldn't
be unreasonable as it purports to be POSIX compliant (unlike
the Bourne Shell, if you could find a copy of that anywhere, which
is not).

To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation