CTL-z+fg breaks (for) loops
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
For the fourth time these days, I've found that CTL-z+fg has a strange behaviour in bash now: it breaks the loops instead of pausing them.
Let's say I have the following loop:
for i in a b c d e ; do longcommand "$i" ; done
If I do a CTL-z, when longcommand is working on b, then everything is stopped, as expected. If I do a fg, then "longcommand b" restart and finished, as expected. However, as soon as "longcommand b" is finished, the loop ends. "longcommand c", "longcommand d" and "longcommand e" are never executed...
I'm unsure if this might come from a specific local config or not... I've only noticed this strange behaviour recently, whereas I've not made any change to my config files for a while.
Cheers
GM
Just for clarification, I'm on latest upgrade of Ubuntu 14.04.1 LTS, and I've noticed the same behaviour on latest Mint (not surprising though...)
GNU bash, version 4.3.11(1)-release (x86_64- pc-linux- gnu)
Linux gyom 3.13.0-35-generic #62-Ubuntu SMP Fri Aug 15 01:58:42 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux