bug-bash
[Top][All Lists]
Advanced

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

Re: Interactive job control and looping constructs


From: Jonathan Hankins
Subject: Re: Interactive job control and looping constructs
Date: Mon, 5 Jan 2015 14:01:15 -0600

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 <address@hidden> 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 <address@hidden>

______________________________________________________________________
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

address@hidden
------------------------------------------------------------------------


reply via email to

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