Re: Interactive job control and looping constructs

2014-12-24 Thread Chet Ramey
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 >

Interactive job control and looping constructs

2014-12-24 Thread Ed Avis
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 the loop does not continue. I understand that job