[PATCH] gen_build_files.sh: Remove bashisms

Bernd Petrovitsch bernd at petrovitsch.priv.at
Mon May 17 14:26:28 UTC 2010


On Mon, 2010-05-17 at 13:23 +0200, Natanael Copa wrote:
> On Fri, May 14, 2010 at 10:41 PM, Rob Landley <rob at landley.net> 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.
> 
> Please no. Please let it be possible to build busybox with the busybox tools.

It's (obviously) not possible now if bash isn't installed.
So the above makes it at least work for Debian-esque people with a bash
installed.

> Busybox ash handles most shell scripts just fine. Please don't force
> us to install the slow bloaty bash to bootstrap a busybox system.
> Please.

Care to provide patches solving problems?!

	Bernd
-- 
Bernd Petrovitsch                  Email : bernd at petrovitsch.priv.at
                     LUGA : http://www.luga.at



More information about the busybox mailing list