Mailinglist Archive: opensuse-factory (689 mails)

< Previous Next >
Re: [opensuse-factory] why are raw scripts forced into /bin/sh instead of user's shell (a Suse patch to bash)
On Friday 01 March 2013, Carlos E. R. wrote:
El 2013-02-27 a las 22:52 -0600, Larry Finger escribió:
On 02/27/2013 09:59 PM, Linda Walsh wrote:

Why do you think this is SUSE only. Every distro has a default
shell, which is what you get when you do not specify the shell to

/bin/sh is a link to a shell. Linda, find out which it is in your

And note that if you invoke /bin/bash by the /bin/sh link then some
bashisms are disabled.

To give an example ...

rudi@tenfore:~> ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2012-11-13 23:17 /bin/sh -> bash
rudi@tenfore:~> bash -c ". .bashrc"
rudi@tenfore:~> sh -c ". .bashrc"
sh: line 0: .: .bashrc: file not found

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

< Previous Next >
List Navigation
Follow Ups