[PATCH] ash: add bash-like ERR trap and set -E
Denys Vlasenko
vda.linux at googlemail.com
Tue Sep 7 19:43:44 UTC 2021
On Tue, Sep 7, 2021 at 6:26 PM Roberto A. Foglietta
<roberto.foglietta at gmail.com> wrote:
> Il giorno mar 7 set 2021 alle ore 18:19 Denys Vlasenko
> <vda.linux at googlemail.com> ha scritto:
> >
> > Applied the part which fixes LINENO.
> >
> >
> > // continue reading input from stdin after running 'echo'.
> > // bash does not do this: it prints "hBcs" and exits.
> > + lineno = 0;
> > evalstring(minusc, EV_EXIT);
> > }
> >
> > This needs existing testsuite to be updated, right?
>
> zero like bash
> one like busybox
>
> Thus, using zero the busybox test suite needs to be updated.
If you send a patch with "lineno = 0", this patch needs to also
update testsuite so that it does not generate false positives.
More information about the busybox
mailing list