[op5-users] Bash instead of sh for install-merlin.sh

Andreas Ericsson ae at op5.se
Tue Aug 25 10:18:02 CEST 2009


Roman Kyrylych wrote:
> Andreas Ericsson wrote:
>> Roman Kyrylych wrote:
>>> nap wrote:
>>>> On Mon, Aug 24, 2009 at 2:15 PM, Patrik Båt<Patrik.Bat at cypoint.se> wrote:
>>>>> Nowdays /bin/sh is a link to /bin/bash in some distributions ...
>>>>> But at it seems with ubutnu, its not... it's the old happy bornshell...
>>>> Ununtu is always... surprising... :)
>>> Making /bin/sh a symlink to /bin/bash is wrong.
>> It's not actually wrong per se since bash is posix compatible.
> 
> Yes, it is, but this encourages people to use bashisms
> instead of pure sh.
> 

The wrong thing is to use bashisms in scripts intended to be portable. Using
a more competent shell to emulate a less competent one is not wrong. Ergo,
it's not wrong to make /bin/sh a symlink (or hardlink) to /bin/bash.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.


More information about the op5-users mailing list