I think that the following text from the zshell's code is an interesting read
on the subject:
TL;DR: Another strategy is to "migrate" the while-loop to a child process the
moment that you hit ^Z, but, this is really hard (maybe impossible?) to do
correctly.
(From Src/exec.c)
/*
* [...]
*
* In
On 1/13/15 11:37 AM, Guillaume MULLER wrote:
> Hi,
>
> When I run a for loop in bash, then pausing it with CTL-z, then restarting
> it with fg, the for loop just stops. I don't think this was the behaviour
> until recently, and I don't find it a correct behaviour, according to the
> meaning of the
Hi,
When I run a for loop in bash, then pausing it with CTL-z, then restarting it with fg,
the for loop just stops. I don't think this was the behaviour until recently, and I don't
find it a correct behaviour, according to the meaning of the CTL-z "suspend"
(https://en.wikipedia.org/wiki/Contr
On Mon, Jan 12, 2015 at 11:50:56AM -0500, Chet Ramey wrote:
> On 1/12/15 9:55 AM, wer...@linux-8jdz.site wrote:
> > Configuration Information [Automatically generated, do not change]:
> > Machine: x86_64
> > OS: linux-gnu
> > Compiler: gcc -I/home/abuild/rpmbuild/BUILD/bash-4.3
> > -L/home/abuild/