zsh-users
 help / color / mirror / code / Atom feed
From: Mike Hernandez <sequethin@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>, zsh-users@sunsite.dk
Subject: Re: Airthmetic confusion...
Date: Tue, 17 May 2005 07:26:37 -0400	[thread overview]
Message-ID: <3060c23905051704266161dfef@mail.gmail.com> (raw)
In-Reply-To: <1050517034852.ZM26898@candle.brasslantern.com>

On 5/16/05, Bart Schaefer <schaefer@brasslantern.com> 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


  reply	other threads:[~2005-05-17 11:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-16 17:55 Meino Christian Cramer
2005-05-16 20:43 ` Matthias Berndt
2005-05-16 20:59   ` Mike Hernandez
2005-05-16 21:46     ` Dan Nelson
2005-05-17  1:19       ` Mike Hernandez
2005-05-16 23:39     ` Matthias Berndt
2005-05-17  3:13     ` Meino Christian Cramer
2005-05-17  3:48       ` Bart Schaefer
2005-05-17 11:26         ` Mike Hernandez [this message]
2005-05-17 14:57         ` Meino Christian Cramer
2005-05-17  3:14   ` Meino Christian Cramer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3060c23905051704266161dfef@mail.gmail.com \
    --to=sequethin@gmail.com \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).