[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: more ash/dash/bash questions



On Wed, May 07, 2008 at 08:44:34PM +1200, Chris Bannister wrote:
 
> > some years ago I remember reading here that pointing /bin/sh to dash or
> > ash would break a lot of important scripts in Debian;
> 
> Umm, well, if /bin/sh points to dash/ash and you write a script with
> bashisms then you have to have #!/bin/bash as the interpreter line. The
> reason there was talk about it, is that traditionally /bin/sh pointed to
> /bin/bash and so it wouldn't matter if you used bashisms or not. Now,

I was always wondering about this. I thought bash behaved differently 
(as in POSIX) when called as sh.

> /bin/sh is going to point to dash for reasons of bootup speed and I
> suppose also (eventually) to not force the installation of bash, as it
> is a bit of a resource hog, although this last part is just a guess.
 
I think bash will remain a high priority package as it is a better 
choice as a default shell *than dash/ash* (no flamewars please) for 
normal users.

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

Attachment: signature.asc
Description: Digital signature


Reply to: