zsh,bash: flow control improvements