Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Airthmetic confusion...



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