GNU-compatible, BSD-licensed bc
Conrad Meyer
cem at freebsd.org
Mon Jan 7 21:16:54 UTC 2019
On Mon, Jan 7, 2019 at 11:46 AM Gavin Howard <gavin.d.howard at gmail.com> wrote:
>
> On Mon, Jan 7, 2019 at 11:06 AM Dimitry Andric <dim at freebsd.org> wrote:
> > That said, are you aware of any great differences between your bc and
> > the one originally from OpenBSD?
>
> Yes. See below for the important one.
>
> The non-important ones include the fact that I support *every* GNU
> extension. That includes array references, void functions, the "halt"
> keyword, etc.
>
>...
>
> My bc handles the Linux timeconst.bc script with aplomb from 0 to (at
> least) 1000. It is part of my test suite, actually.
>
> You can try it out by running the following command after building my
> bc (where BC_ROOT is the root directory of my bc):
>
> $ "$BC_ROOT/tests/bc/timeconst.sh" /location/of/timeconst.bc
>
> It won't have any output besides "Running timeconst.bc..." unless it
> didn't pass the test.
>
> Also, this bc builds out of the box on FreeBSD. I have already made
> sure of that. Just use:
>
> $ cd "$BC_ROOT"
> $ ./configure.sh -O3
> $ make
Gavin,
This all sounds great to me. Consider me on-board with the idea.
Thanks,
Conrad
More information about the freebsd-arch
mailing list