Bug 452963 - 'continue -1' gets zsh paralyzed
'continue -1' gets zsh paralyzed
Product: Fedora
Classification: Fedora
Component: zsh (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: James Antill
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-06-26 05:43 EDT by Akira TAGOH
Modified: 2009-04-03 12:17 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-04-03 12:17:32 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Akira TAGOH 2008-06-26 05:43:30 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):

How reproducible:

Steps to Reproduce:
1.see above
Actual results:
no errors. and no operations after that except C-d and storing history.

Expected results:
If giving -1 to 'continue' is invalid, that should behaves like bash:
-bash: continue: -1: loop count out of range

Additional info:
Comment 1 Daniel Qarras 2008-08-30 14:55:03 EDT
I was able to reproduce this. I reported this upstream at:

Comment 2 Daniel Qarras 2008-08-31 09:58:11 EDT
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.
Comment 3 Daniel Qarras 2008-10-13 16:19:49 EDT
Still seeing this with F10Beta.
Comment 4 Daniel Qarras 2009-04-03 11:05:45 EDT
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.
Comment 5 James Antill 2009-04-03 12:17:32 EDT
thanks for testing

Note You need to log in before you can comment on or make changes to this bug.