[PATCH] shell script error management in ash (set of 6 patches)

Roberto A. Foglietta roberto.foglietta at gmail.com
Fri Aug 20 15:31:24 UTC 2021


Il giorno ven 20 ago 2021 alle ore 16:36 Harald van Dijk <harald at gigawatt.nl>
ha scritto:

>
>    cat >shrc <<EOF
>    :
>    :
>    :
>    EOF
>    ENV=shrc ./busybox ash -ic 'echo LINENO=$LINENO'
>    3
>
> I can understand (and would
> personally prefer) outputting 1 / 2 for the first case and 1 for the
> second case. Outputting 3 for the second case seems wrong.
>

Please Harald, explain to me the syntax of this case because it is
unusual for me.
Especially what's supposed to do ENV=shrc in these conditions. Thank you.

Do you agree that this is a rare corner case?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20210820/a004f259/attachment.html>


More information about the busybox mailing list