Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

"continue -1" confuses zsh



Hi,

noticed this one too in RH Bugzilla:

while [ 1 ]; do continue -1; done

confuses zsh: no errors are printed, the loop exits, but then no commands are executed anymore. Easy to reproduce:

localhost:~> echo foo
foo
localhost:~> while [ 1 ]; do continue -1; done
localhost:~> echo foo                         
localhost:~> 

Cheers!




      



Messages sorted by: Reverse Date, Date, Thread, Author