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

Re: I've forgotten again how to do this --> 0-100



Andrew Main <zefram@xxxxxxxxx> typed:
:Timothy J Luoma wrote:
:>for i in 0-100; do
:>	echo $i
:>done
:for ((i=0;i<=100;i++)); do
:	echo $i
:done
:takes less memory than the brace expansion method.

And is only available in zsh-3.1.2 up.  Or maybe 3.1.1 up (but it's not one
of the 30 odd zsh versions I've got in my bin dir).
-- 
Geoff Wing [gcw@xxxxxxxxx]                         Phone    : +61-3-9818 2977
 Technical Manager: PrimeNet Computer Consultants  Facsimile: +61-3-9818 5155
 Work URL: http://www.primenet.com.au/             Mobile   : 0412 162 441
 Ego  URL: http://pobox.com/~gcw/



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