From: John Reese <john.reese@gmail.com>
To: Zsh Users <zsh-users@sunsite.dk>
Subject: Re: Arithmetic expression and TRY_BLOCK_ERROR
Date: Tue, 27 Sep 2005 17:11:28 -0700 [thread overview]
Message-ID: <4880307205092717115fbb352a@mail.gmail.com> (raw)
In-Reply-To: <20050927234153.GB988@DervishD>
2005/9/27, DervishD <zsh@dervishd.net>:
> 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. Also, that particular
assignment sets $? to 1. Maybe that's desired. I don't know.
Probably it's just that it's a fairly compact syntax for setting an
integer variable.
ofb:1% thok=0 17:08 ofb:~
ofb:1% (( khot = 0 )) 17:08 ofb:~
ofb:1% integer xox=0 17:08 <1> ofb:~
ofb:1% let box=0 17:08 ofb:~
ofb:1% typeset -p thok khot xox box 17:09 ofb:~
typeset thok=0
typeset -i khot=0
typeset -i xox=0
typeset -i box=0
next prev parent reply other threads:[~2005-09-28 0:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-27 23:41 DervishD
2005-09-28 0:11 ` John Reese [this message]
2005-09-28 0:48 ` Will Maier
2005-09-28 1:04 ` John Reese
2005-09-28 8:46 ` DervishD
2005-09-28 14:55 ` Bart Schaefer
2005-09-29 10:30 ` DervishD
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=4880307205092717115fbb352a@mail.gmail.com \
--to=john.reese@gmail.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).