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?

On Tue, Sep 7, 2021 at 11:18 AM Roberto A. Foglietta
<roberto.foglie...@gmail.com> wrote:
>
> Il giorno dom 5 set 2021 alle ore 23:52 Roberto A. Foglietta
> <roberto.foglie...@gmail.com> ha scritto:
> >
> > Il giorno dom 5 set 2021 alle ore 21:40 Denys Vlasenko
> > <vda.li...@googlemail.com> ha scritto:
> > >
> > > IIRC you want to fix other LINENO problems anyway,
> > > like incorrect handling of it in functions?
> >
> > Nope, at the moment all problems are fixed. AFAIK. Patch v021 is my
> > final one, IMHO.
> > Unless, you show unacceptable downsides in replacing raise_exception()
> > with exitshell().
> >
>
> I am attaching the second part of the patch for enabling the global
> LINENO and FUNCNAME variables.
>
> Best regards,
> --
> Roberto A. Foglietta
> +39.349.33.30.697
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to