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

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



On Thu, Jan 15, 1998 at 10:28:37AM +0000, Andrew Main wrote:
> 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.
> 
> -zefram

Is there a switch I need to do something like this?

> atc1:~> for ((i=0;i<=100;i++)); do
> zsh: parse error near `((i=0'

-brandon



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