bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: possible bash bug bringing job. to foreground


From: Greg Wooledge
Subject: Re: possible bash bug bringing job. to foreground
Date: Sat, 17 Feb 2024 14:53:59 -0500

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?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]