Actually, it's no more than what you have called it, hack. It works only in bash -- due to it's policy of propagating HUP to childs when main process exits. So dash, etc. are out of question -- even by applying numerous nested dirty hacks.
It makes me sad, being unable to compose clean solution. Maybe, maintaining user patch to execute user-specified command on clean 'st' exit would be more reasonable solution. Moreover, it would allow the process tree to be cleaner. On Fri, Aug 12, 2016 at 03:02:34AM +0000, Quentin Carbonneaux wrote: > > Cool hack, maybe we could add an "Idioms" section to the wiki > to suggest this kind of things. > > -- mpu >