Re: [Hampshire] Bash -> Dash for sh. Is it safe?

Top Page

Reply to this message
Author: Adrian Bridgett
Date:  
To: adam.trickett, Hampshire LUG Discussion List
CC: 
Subject: Re: [Hampshire] Bash -> Dash for sh. Is it safe?
On Fri, Jun 1, 2007 at 11:45:36 +0100 (+0100), Dr Adam J Trickett wrote:
> I'm not proposing to changing my login shell to dash, but
> have anyone tried changing sh to dash and what kind of
> problems did you see? I also think running my scripts
> under other Bourne/POSIX shells is good practice for me
> as well.


On my Debian box I changed /bin/sh to point to ash rather than bash -
thus all my scripts use it (except those that have bashisms but they
are a) few and far between b) start #!/bin/bash anyway).

It did shave a few seconds off boot up with no adverse effects.

My login shell I left as /bin/bash since it's a bit more friendly I
use bashisms like:

mv foo{,.old}       (expands to "mv foo foo.old")


all the time at the command line.

Adrina