bug-bash
[Top][All Lists]
Advanced

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

Re: [feature request] put job in background without stopping it first


From: Paul Jarc
Subject: Re: [feature request] put job in background without stopping it first
Date: Sat, 20 Apr 2002 03:30:15 -0400
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i686-pc-linux-gnu)

Dan Jacobson <jidanni@deadspam.com> wrote:
> Wasn't there a ^Y in some shell somewhere that could do the
> same as a "^Z;bg".

That doesn't seem likely.  It would take a lot of work to do this in
bash.  The effect you want is to change the terminal's foreground
process group, and to notify bash that it has received control of the
terminal.  About the only way to do that would be to send *all* input
for *all* jobs through bash and let bash relay all input to the
appropriate job, except for this magic keystroke.  Otherwise, the
keystoke would be delivered to the terminal driver, and terminal
drivers don't have any way of doing what you want.

> if I forget to use "&" at outset, how can I get the job into the
> background with out C-z or going thru some back window or something.
> Assume I only have one window on one terminal.

echo "exec screen" >> ~/.bash_profile


paul



reply via email to

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