This is, unfortunately, by design.
I’ve committed a manpage change (in CAVEATS) with a rationale, though.
** Changed in: mksh
Status: Triaged => Invalid
--
You received this bug notification because you are a member of mksh
Mailing List, which is subscribed to mksh.
Matching
>I still cannot confirm either way, but some preliminary research
>with an extended test script:
I’ve found something interesting:
tg@blau:~ $ mksh -c 'echo a; (trap -- "echo subshell_exit >&2" EXIT); echo b'
a
b
tg@blau:~ $ mksh -c 'echo a; (trap -- "echo subshell_exit >&2" EXIT;); echo b'
a
b