2 ms·
Interestingly, at least how I have zsh configured and don't have bash configured, the behavior of `fg` after suspending these is different. With zsh when I res
by jlgreco 14y ago
Interestingly, at least how I have zsh configured and don't have bash configured, the behavior of `fg` after suspending these is different.
With zsh when I resume the execution it continues looping. However with bash it resumes for only one more iteration.
- eridius 14y agoYeah I would have expected `fg` to continue the loop, but it doesn't. If I put `echo $?` after the subshell in that loop, it doesn't even print when I run `fg`. It's like bash just throws away the loop entirely when I suspend the subshell.
- Evbn 14y agoYeah that's a famously annoying bug in bash.