From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28561 invoked from network); 15 Jan 1998 23:19:33 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 15 Jan 1998 23:19:33 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id RAA09028; Thu, 15 Jan 1998 17:58:29 -0500 (EST) Resent-Date: Thu, 15 Jan 1998 17:57:51 -0500 (EST) To: zsh-users@math.gatech.edu Path: mason From: mason@primenet.com.au (Geoff Wing) Newsgroups: lists.zsh.users Subject: Re: I've forgotten again how to do this --> 0-100 Date: 15 Jan 1998 22:59:15 GMT Organization: A poorly-installed InterNetNews site Message-ID: References: <199801151028.KAA21473@taos.demon.co.uk>; from Andrew Main on Thu, Jan 15, 1998 at 10:28:37AM +0000 <19980115153221.55822@astaroth.nit.gwu.edu> Reply-To: mason@primenet.com.au NNTP-Posting-Host: coral.primenet.com.au X-Trace: coral.primenet.com.au 884905155 28110 (None) 203.24.36.33 X-Complaints-To: usenet@coral.primenet.com.au X-Newsreader: slrn (0.9.4.3 UNIX) Resent-Message-ID: <"PRGMv2.0.CC2.kHflq"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1235 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Sweth Chandramouli typed: :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. :how does it compare (memory-wise) to the following: :while (( $i < 101 )); do : echo $i : i=$((i+1)) let i++ :done -- Geoff Wing [gcw@pobox.com] 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/