math support in busybox shells
walter harms
wharms at bfs.de
Wed Apr 1 16:09:39 UTC 2009
Mike Frysinger schrieb:
> On Wednesday 01 April 2009 05:20:45 walter harms wrote:
>> Denys Vlasenko schrieb:
>>> On Wednesday 01 April 2009 09:22, walter harms wrote:
>>>> Hi mike,
>>>> dc has some nice math and is a actualy a small utility. perhaps you can
>>>> add that math cababilities to ash ?
>>> ash already got some working math capabilities.
>>> dc is a stack engine (different notation).
>>>
>>>> that would be a real enhancement over other shells.
>>> In a sense "totally incompatible math syntax"?
>> ups, i mean bc (no upn please)
>>
>> bc has some fp support and arbitrary precision support.
>> you can emulate math with bc what is a bit clumsy.
>
> except bc doesnt provide all of the syntax required by POSIX shells
>
>> That would be a real improvement over other shells.
>> the fact that we programm for embedded system should not
>> stop us from thinking about extending existing solutions.
>
> i'd rather spend time on implementing the spec before worrying about extending
> it ...
my primary convern is with FP all shells i know have int suport only (what is reasonable
for 90% of all applications). having BC (-code) in shell was the idea because of the
arbitrary precision support.
ntl this was only an IDEA you can do what you like. piping in the code into bc and reading
the results works fine for me.
re,
wh
More information about the busybox
mailing list