From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 851 invoked from network); 28 Nov 1997 19:18:52 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 28 Nov 1997 19:18:52 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id OAA17002; Fri, 28 Nov 1997 14:12:53 -0500 (EST) Resent-Date: Fri, 28 Nov 1997 14:12:20 -0500 (EST) Message-ID: <19971128140924.07137@retriever> Date: Fri, 28 Nov 1997 14:09:24 -0500 From: Louis-David Mitterrand To: zsh-users@math.gatech.edu Subject: strange arithmetic Reply-To: mito@aparima.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 Resent-Message-ID: <"H_Qse.0.894.JUnVq"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1159 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu (using 3.0.5) % i=0;while [[ $[++i] < 900 ]];do;echo $i;done % 1 % 2 [...] % 90 90 ?? I asked for 900 and it stops at 90. On the other hand the following: % i=0;while ! [[ $[++i] = 900 ]];do;echo $i;done % 1 % 2 [...] % 899 Is this normal? -- Louis-David Mitterrand http://www.aparima.com mito@aparima.com