On Friday 14 May 2010 15:52:24 Cristian Ionescu-Idbohrn wrote:
> On Fri, 14 May 2010, Rob Landley wrote:
> > On Thursday 13 May 2010 18:05:53 Peter Tyser wrote:
> > > Using 'read' without a variable is not supported in many shells.  Lines
> > > such as 'while read; do' in gen_build_files.sh would result in build
> > > failures when using sh or dash as an interpreter:
> >
> > Simple fix: say #!/bin/bash at the top of all shell scripts, always.
>
> Not surprisingly, I disagree :)
> dash is 5+ times faster than bash.

And of course you program in shell for performance reasons.

> > Speaking of which, when hush gets close to being a reasonable bash
> > replacement (about when we're ready to delete ash), we should teach it
> > to be callable via a "bash" alias, since so many scripts do this becase
> > the Defective Annoying Shell is such a horrid Ubuntu-ism.
>
> Not only.
> Soon to become an as horrid debian-ism and debian derivate-ism.

Debian is sucking in bad design decisions from Ubuntu, yes.

They're still bad design decisions.  The rationale for the switch to dash was 
to speed up init scripts.  Switching #!/bin/sh instead of having the init 
scripts start with #!/bin/dash was a stupid way to go about it.  Then they 
implemented upstart and started rewriting the init logic in C, rendering it 
doubly moot.

But as with all large bureaucracies, the bad decision has acquired momentum.  
It's like the itanium; no purpose to continue to exist but too much invested 
in it to stop...

> Cheers,

Rob
-- 
Latency is more important than throughput. It's that simple. - Linus Torvalds
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to