Red Hat Bugzilla – Bug 452963
'continue -1' gets zsh paralyzed
Last modified: 2009-04-03 12:17:32 EDT
Description of problem:
after trying "while [ 1 ]; do continue -1; done", zsh doesn't do anything except
Version-Release number of selected component (if applicable):
Steps to Reproduce:
no errors. and no operations after that except C-d and storing history.
If giving -1 to 'continue' is invalid, that should behaves like bash:
-bash: continue: -1: loop count out of range
I was able to reproduce this. I reported this upstream at:
And, amazingly, within 24 hours on a Saturday/Sunday period a patch was posted and committed, including new tests and enhanced compatibility:
Seems that this bug can be marked as being fixed in upstream.
Still seeing this with F10Beta.
This is fixed in F11ß:
localhost:~> while [ 1 ]; do continue -1; done
continue: argument is not positive: -1
zsh: exit 1
Please close this one if you can.
thanks for testing