>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 tg@blau:~ $ mksh -c 'echo a; (trap -- "echo subshell_exit >&2" EXIT;:); echo b' a subshell_exit b There’s also already a regression test checking that EXIT traps defined in subshells are in fact run. So it’s probably a Tree composition or execution or optimisation issue… I’ll have a look. bye, //mirabilos -- 11:56⎜«liwakura:#!/bin/mksh» also, i wanted to add mksh to my own distro │ i was disappointed that there is no makefile │ but somehow the Build.sh is the least painful built system i've ever seen │ honours CC, {CPP,C,LD}FLAGS properly │ looks cleary like done by someone who knows what they are doing