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

Re: Fwd: /bin/sh linked to dash? SOlVED, however..



On Fri, Jul 08, 2011 at 05:39:01PM -0400, Robert Isaac wrote:
> It's more trivial to change the default shell to bash if it is
> necessary for a configuration, there is no need to get defensive about
> dash or force its use upon anyone that doesn't want to use it.
> 
> So a few seconds saved whenever a kernel update is issued justifies
> breaking existing configurations?  Are you really making that
> argument?

Anyone that writes scripts assuming /bin/sh is bash has always been
broken.  Many unix systems do NOT have bash as /bin/sh.  This has mainly
been the case on a lot of linux systems, but not much else ever.

So yes I will make that argument.  Scripts that are broken and always
have been are simply broken.  Just because they worked for a lot of people
(but not all) doesn't mean they were ever right.

Some people have put a lot of effort into improving boot speeds.
Some people have put a lot of effort into finding and fixing bashisms in
scritps that are supposed to only require posix.  Clearly they thought
this was worthwhile.

Are you going to argue that changing the first line of a script so that
it is correct, works everywhere (rather than just a lot of places by
accident) is a bad idea?

-- 
Len Sorensen


Reply to: