[PATCH] gen_build_files.sh: Remove bashisms
Rob Landley
rob at landley.net
Fri May 14 20:41:18 UTC 2010
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.
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.
Rob
--
Latency is more important than throughput. It's that simple. - Linus Torvalds
More information about the busybox
mailing list