>
> i was shocked to discover that killing a window (in tmux) does not kill
> the bash procedure running in it.  how would you recommend that a bash
> function check whether it's output is visible anywhere anymore?
>

i've had a chance to poke at it a bit now, all the simplified test
functions i try all *do* exit with their parent window, even tho i include
many of the structural elements of the full function.  the full function
however does not exit with the window.  dunno why, tho it doesn't really
matter..  to answer my own question:

[ -t 1 ]

nicely tests if the parent terminal still exists, or, since the function
invokes "less", i can simply use the abnormal exit from less as an
indication the terminal is gone.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20170517/a3ce7342/attachment.html>