Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Arithmetic expression and TRY_BLOCK_ERROR
- X-seq: zsh-users 9454
- From: DervishD <zsh@xxxxxxxxxxxx>
- To: John Reese <john.reese@xxxxxxxxx>
- Subject: Re: Arithmetic expression and TRY_BLOCK_ERROR
- Date: Wed, 28 Sep 2005 10:46:55 +0200
- Cc: Zsh Users <zsh-users@xxxxxxxxxx>
- In-reply-to: <4880307205092717115fbb352a@xxxxxxxxxxxxxx>
- Mail-followup-to: John Reese <john.reese@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: DervishD
- References: <20050927234153.GB988@DervishD> <4880307205092717115fbb352a@xxxxxxxxxxxxxx>
Hi John :)
* John Reese <john.reese@xxxxxxxxx> dixit:
> 2005/9/27, DervishD <zsh@xxxxxxxxxxxx>:
> > Hi all :)
> > I'll try to make it short ;) Why this:
> > ...
> > (( TRY_BLOCK_ERROR = 0 ))
> > ...
> > and not just this:
> > ...
> > TRY_BLOCK_ERROR=0
> > ...
> > ?????
> >
> The parentheses make it an integer variable.
I know it, what I don't understand is why is it needed :? I mean,
that variable is already an integer variable.
> Also, that particular
> assignment sets $? to 1. Maybe that's desired. I don't know.
Not in that context (is the code of the "throw" and "catch"
functions).
> Probably it's just that it's a fairly compact syntax for setting an
> integer variable.
'let variable=0' is shorter ;) I really don't know the reason,
but I can find this kind of assignment everywhere :-/
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author