On Thu, 10 Aug 2023 at 06:20, Roberto A. Foglietta <[email protected]> wrote:
> Someone can update me on this part of the code, please? By the way, there is another place in which the same choice has been taken: -> https://github.com/robang74/tinycore-editor/blob/main/busybox/patches/busybox-1.34.0-do-not-cache-value-of-eflag-in-evaltree.patch The second last trunk of the above patch: --- src/shell/ash.c 2021-09-07 05:03:11.231348468 +0200 +++ src/shell/ash.c 2021-09-07 05:02:04.710203902 +0200 @@ -9316,10 +9313,12 @@ evaltree(union node *n, int flags) } } if (eflag) - exitshell(); + goto exexit; } - if (flags & EV_EXIT) + if (flags & EV_EXIT) { +exexit: exitshell(); + } popstackmark(&smark); TRACE(("leaving evaltree (no interrupts)\n")); Which has been applied but with raise_exception(EXEND); instead of exitshell(); - and I suppose for the same reason even if no comment highlights it. Best regards, R- _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
