Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Airthmetic confusion...
- X-seq: zsh-users 8843
- From: Mike Hernandez <sequethin@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Subject: Re: Airthmetic confusion...
- Date: Tue, 17 May 2005 07:26:37 -0400
- 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=
- In-reply-to: <1050517034852.ZM26898@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050516.195529.74749456.Meino.Cramer@xxxxxx> <20050516224332.246839a4@localhost> <3060c239050516135933fd2ff6@xxxxxxxxxxxxxx> <20050517.051316.74748513.Meino.Cramer@xxxxxx> <1050517034852.ZM26898@xxxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: Mike Hernandez <sequethin@xxxxxxxxx>
On 5/16/05, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> If you want ONLY arithmetic evaluation, use $(( expression )),
> and apply the colon command if necessary, e.g.
>
> : $(( x = a - b ))
>
> or
>
> x=$(( a - b ))
>
> Those are both successful shell expressions that result in zero-
> value assignments to x.
>
Thanks for shedding light on this Bart! I was going crazy trying to
figure this out :)
Mike
Messages sorted by:
Reverse Date,
Date,
Thread,
Author