Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Airthmetic confusion...
- X-seq: zsh-users 8837
- From: Mike Hernandez <sequethin@xxxxxxxxx>
- To: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Subject: Re: Airthmetic confusion...
- Date: Mon, 16 May 2005 21:19:22 -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=QmML89MJRCYezy3qFLLdYmvQAKyfycXfCbFrWv3oop97+XtwTl/9GecAeYcM9CucQGnW40K5FfUhC0FtuYj/2N//q1AAH1gj45zi1+807pn5xwnb0xs/+nIV5gQfhpX/s1mQTlTeU+r/VC0xplFFcqS/dqpp8WiwVfiGn2S6npI=
- In-reply-to: <20050516214611.GA90284@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050516.195529.74749456.Meino.Cramer@xxxxxx> <20050516224332.246839a4@localhost> <3060c239050516135933fd2ff6@xxxxxxxxxxxxxx> <20050516214611.GA90284@xxxxxxxxxxxxxxxx>
- Reply-to: Mike Hernandez <sequethin@xxxxxxxxx>
On 5/16/05, Dan Nelson <dnelson@xxxxxxxxxxxxxxx> wrote:
> That's because within an arithmentic context, 0 is false and 1 is true,
Ok so you're saying that since 0 is false in the arithmetic context,
it gets translated by the shell to be 1, because 1 is false in the
shell context? That makes sense... but it does make things very
confusing ;) True translates to true, and false translates to false,
which is totally sound and logical... but the fact that 1 is true in
one context and false in another makes it seem that true is translated
into false *sigh*. I had to read this email 10 times before I sent it
to make sure I even typed what I meant ;)
Mike
Messages sorted by:
Reverse Date,
Date,
Thread,
Author