[PATCH] gen_build_files.sh: Remove bashisms
Cristian Ionescu-Idbohrn
cristian.ionescu-idbohrn at axis.com
Fri May 14 20:52:24 UTC 2010
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.
> 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.
Cheers,
--
Cristian
More information about the busybox
mailing list