I should point out, I suppose, that [KS]*.sh scripts lose their ability to affect the rest of the system anyways in an SMF world. There's no way that one could expect such a script to affect the environment of non-legacy services.
So I think this is a bug that could reasonably be closed as WNF. Nico --