On Sat, Feb 17, 2024, 20:54 Greg Wooledge <g...@wooledge.org> wrote: > On Sat, Feb 17, 2024 at 07:41:43PM +0000, John Larew wrote: > > After further examination, the examples with "fg $$" and "fg $!" clearly > do not bring the subshell into the foreground, as they are evaluated prior > to the subshells background execution. > > I'm trying to bring the subshell to the foreground to perform an exit, > after a delay. > > Ultimately, it will be used as part of a terminal emulator inactivity > timeout. > > Bash already has a TMOUT variable which will cause an interactive shell > to exit after a specified length of inactivity. Is that sufficient? > If not, how does your desired solution need to differ from TMOUT? >
i never heard of TMOUT before , too >