Re: [mu TECH] Awk 'expr'

From: Michele Andreoli (m.andreoli@tin.it)
Date: Tue Jul 18 2000 - 09:27:32 CEST


Alfie Costa wrote:
>
> Do grant me pity, for this is a late reply...
>
> On 9 Jul 2000, at 23:54, Michele Andreoli <mulinux@sunsite.auc.dk> wrote:
>
> > AC> BTW, on extending mu, has anyone considered adding some sort of Forth
> > AC> interpreter for mu?
> >
> > In the first floppy we have AWK: using AWK, you can do anything.
>
> Maybe Awk isn't used enough at that. 'Awk' looks like it would be good for a
> more versatile rustic 'expr'. The version of 'expr' in 'busybox' needs a
> compiler, and only takes two arguments... that is, '/bin/expr' will listen to
> this:
>
> # expr 1 + 2
>
> But not...
>
> # expr 1 + 2 + 3
>
> ...and so there are scripts which call '/bin/expr' twice in row to get the same
> effect, which is another bottleneck.
>
> The question: If I write a new 'expr' script that uses '/usr/bin/mawk', will
> this be available for the first time boot scripts?

No.

>That is, will we still need
> to keep the current '/bin/busybox' version of 'expr', or not? (I'm worried
> that 'mawk' only works if the USR addon is installed.)

Yes. But /usr/bin/expr take priority over /bin/expr.

Michele

---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.auc.dk
For additional commands, e-mail: mulinux-help@sunsite.auc.dk



This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:15 CET