[PATCH] ash: add bash-like ERR trap and set -E

Roberto A. Foglietta roberto.foglietta at gmail.com
Tue Sep 7 04:21:46 UTC 2021


Il giorno dom 5 set 2021 alle ore 21:40 Denys Vlasenko
<vda.linux at googlemail.com> ha scritto:

> All LINENO problems are to be fixed in a separate patch -

In this piece of code, you might want change the initialising value:

state3:
state = 4;
if (minusc) {
[ ... ]
lineno = 0; //<----- you might want set this to 1 instead of 0 [*]
evalstring(minusc, EV_EXIT);
}

[*] bash has zero, original ash has one.

Best regards,
-- 
Roberto A. Foglietta
+39.349.33.30.697


More information about the busybox mailing list