<div dir="auto"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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?<br></div>
</blockquote></div><br></div><div class="gmail_extra">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:<br><br></div><div class="gmail_extra">[ -t 1 ]<br><br></div><div class="gmail_extra">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.</div></div></div>