Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: I've forgotten again how to do this --> 0-100
- X-seq: zsh-users 1231
- From: mason@xxxxxxxxxxxxxxx (Geoff Wing)
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: I've forgotten again how to do this --> 0-100
- Date: 15 Jan 1998 15:01:38 GMT
- Organization: A poorly-installed InterNetNews site
- References: <199801150012.TAA07173@xxxxxxxxxxxxxxx> from "Timothy J Luoma" at Jan 14, 98 07:12:21 pm <199801151028.KAA21473@xxxxxxxxxxxxxxxx>
- Reply-to: mason@xxxxxxxxxxxxxxx
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