If this behavior (ignore with warning one or more Ctrl-Z keypresses during
loops before eventually backgrounding) was desirable, there may be code
that could be borrowed from IGNOREEOF handling (I haven't looked at it).

-Jonathan Hankins

On Wed, Dec 31, 2014 at 1:26 PM, Ed Avis <e...@waniasset.com> wrote:

> Thanks for your reply.  I am glad to hear that this is already on the wish
> list,
> although I appreciate it is not straightforward to implement.
>
> A stopgap might be to make Ctrl-Z do nothing when the currently running
> command is a loop or other flow control construct.
> Instead it would print a message explaining that only the current
> subprocess would be interrupted, and saying to hit Ctrl-Z again if that is
> what you really wanted.  I hope this might go some way to making things
> less confusing, and be relatively quick to hack up.
>
> --
> Ed Avis <e...@waniasset.com>
>
> ______________________________________________________________________
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> ______________________________________________________________________
>



-- 
------------------------------------------------------------------------
Jonathan Hankins    Homewood City Schools

The simplest thought, like the concept of the number one,
has an elaborate logical underpinning. - Carl Sagan

jhank...@homewood.k12.al.us
------------------------------------------------------------------------

Reply via email to