From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19141 invoked from network); 12 Sep 1999 18:42:00 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 12 Sep 1999 18:42:00 -0000 Received: (qmail 6139 invoked by alias); 12 Sep 1999 18:41:42 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2593 Received: (qmail 6132 invoked from network); 12 Sep 1999 18:41:41 -0000 X-Authentication-Warning: neumann.cs.elte.hu: bakos owned process doing -bs Date: Sun, 12 Sep 1999 20:41:39 +0200 (CEST) From: Gaspar Bakos To: zsh-users@sunsite.auc.dk Subject: evaluating a condition Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Hi, As a beginner in zsh, I would have a question concerning an 'if' structure. I have the following script, and I would like to print the numbers in the terminal from ${min} to ${max}, if both of them are smaller than 10. export min=$3;export max=$4; if (($[min]<10 && $[max]<10)) then for i in {${min}..${max}}; do echo $i; done fi However, this prints the numbers even if ${max}>10 Can someone help? Gaspar