From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18424 invoked from network); 17 May 2005 11:26:59 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 17 May 2005 11:26:59 -0000 Received: (qmail 94816 invoked from network); 17 May 2005 11:26:51 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 May 2005 11:26:51 -0000 Received: (qmail 7625 invoked by alias); 17 May 2005 11:26:44 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8843 Received: (qmail 7615 invoked from network); 17 May 2005 11:26:43 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 17 May 2005 11:26:43 -0000 Received: (qmail 93769 invoked from network); 17 May 2005 11:26:43 -0000 Received: from wproxy.gmail.com (64.233.184.195) by a.mx.sunsite.dk with SMTP; 17 May 2005 11:26:39 -0000 Received: by wproxy.gmail.com with SMTP id 71so250587wra for ; Tue, 17 May 2005 04:26:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pCiBQMdSSLgbaNfnzAOqAY8LPGE+S2p2MCGvLNJeGYeDqwUSmP6SuQBVpAhQA2pyU/0QEL07fmJ6hgLOyD4NifMSkW3la0WPja9v7+RVxsb9UxWln/1QeNnU/dNyKLUa3pOuehz+nihx9RAUpqYqS5LXfIx4HlMhjKfQbpTqQPI= Received: by 10.54.26.2 with SMTP id 2mr4326915wrz; Tue, 17 May 2005 04:26:37 -0700 (PDT) Received: by 10.54.67.2 with HTTP; Tue, 17 May 2005 04:26:37 -0700 (PDT) Message-ID: <3060c23905051704266161dfef@mail.gmail.com> Date: Tue, 17 May 2005 07:26:37 -0400 From: Mike Hernandez Reply-To: Mike Hernandez To: Bart Schaefer , zsh-users@sunsite.dk Subject: Re: Airthmetic confusion... In-Reply-To: <1050517034852.ZM26898@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050516.195529.74749456.Meino.Cramer@gmx.de> <20050516224332.246839a4@localhost> <3060c239050516135933fd2ff6@mail.gmail.com> <20050517.051316.74748513.Meino.Cramer@gmx.de> <1050517034852.ZM26898@candle.brasslantern.com> X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.5 required=6.0 tests=BAYES_00,RCVD_BY_IP autolearn=ham version=3.0.2 X-Spam-Hits: -2.5 On 5/16/05, Bart Schaefer wrote: > If you want ONLY arithmetic evaluation, use $(( expression )), > and apply the colon command if necessary, e.g. >=20 > : $(( x =3D a - b )) >=20 > or >=20 > x=3D$(( a - b )) >=20 > Those are both successful shell expressions that result in zero- > value assignments to x. >=20 Thanks for shedding light on this Bart! I was going crazy trying to figure this out :) Mike