On Mon, Mar 25, 2024 at 7:18 PM Gioele Barabucci <gio...@svario.it> wrote: > Just for reference, neither dash nor busybox sh preserve the caller's trap:
I don't know why you think they are relevant. dash doesn't even support `x=$(trap)', which is mandated by POSIX to work; and busybox sh is a bare-bones shell for small, embedded systems. -- Oğuz