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 wrote:
> Thanks
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 messag
On 12/24/14 6:51 AM, Ed Avis wrote:
> At an interactive bash prompt, run a 'for' loop:
>
> % for i in a b c; do echo $i; sleep 10; done
>
> Then interrupt this with Ctrl-Z. The process interrupted is just whichever
> sleep process was running at the time. You can then resume it with 'fg' but
>