Busybox build problem

Ravi Chemudugunta chemuduguntar at gmail.com
Sun Feb 18 03:16:07 PST 2007


the posix nazis will want you denis =)

I think its noble of dash adhering to posix standards (whatever they are for
shells) ... as you mentioned the base for bash is too big to 'cleanup' to
work with dash...I would have all scripts by default run on bash, unless
explicitly defined inside the scripts...for e.g. leave sh pointing to bash
but inside the shell scripts which are 'cleaned' ... have them execute
against dash with #!/bin/dash or fork dash that is like bash
(grammatically).


On 2/19/07, Denis Vlasenko <vda.linux at googlemail.com> wrote:
>
> On Sunday 18 February 2007 04:28, Natanael Copa wrote:
> > > Unfortunately it means that fixing just busybox's stripts
> > > is not a solution - there are tons of other shell scripts
> > > lying aroung.
> > >
> > > dash should support "function". It shouldn't be too hard -
> >
> > Since busybox ash is based on dash, this applies to busybox ash too.
> >
> > I am using gentoo's bash centric init scripts, patching them to work
> > with busybox's ash. Its amazing how much really works in dash/ash and
> > most things that don't work are this kind of "meaningless" bash
> > features that just add bloat to your shell and can easy be avoided by
> > doing simple changes in the script. (like removing the "function"
> > keyword from function declarations)
> >
> > I'd prefer people stop using bash specific things,
>
> It's too late. Face the reality. bash installed base is too big.
>
> > rather than trying
> > to patch all shells to support all bash wierdness.
>
> How you realistically imagine everyone starting to audit all their
> scripts for usage of "function"? How many man-years will it take?
> Then compare it to the effort required to add support for this feature
> to dash.
> --
> vda
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/busybox/attachments/20070219/fc59f8d2/attachment.htm 


More information about the busybox mailing list