zsh-workers
 help / color / mirror / code / Atom feed
From: <hzoli@VNET.IBM.COM> (Zoltan T. Hidvegi)
To: pws@ifh.de (Peter Stephenson)
Cc: zsh-workers@math.gatech.edu
Subject: Re: Short loops?
Date: Thu, 27 Feb 1997 10:06:03 -0500 (EST)	[thread overview]
Message-ID: <9702271506.AA21910@lotto.fishkill.ibm.com> (raw)
In-Reply-To: <199702270932.KAA15453@hydra.ifh.de> from Peter Stephenson at "Feb 27, 97 10:32:21 am"

Peter Stephenson wrote:
>     while (( i++ < 10 )); { echo i is $i; }   # Wrong!

I would add that

while (( i++ < 10 ))
{
        echo i is $i
}

is also wrong, since newline behaves line a semicolon.  And I would not
encourage the usage of this brace syntax in scrips because these syntax
rules are quite complicated.  The old sh syntax do not have these hidden
traps.  A lengthy discussion of this syntax in the FAQ may seem to
encourage the usage.

Zoltan


  reply	other threads:[~1997-02-27 15:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-02-26  2:13 Bart Schaefer
1997-02-26 16:10 ` Zoltan T. Hidvegi
1997-02-26 17:11   ` Bart Schaefer
1997-02-26 17:26     ` Zoltan T. Hidvegi
1997-02-26 19:09       ` Bart Schaefer
1997-02-26 19:27         ` Zoltan T. Hidvegi
1997-02-26 21:14           ` Bart Schaefer
1997-02-27  9:32             ` Peter Stephenson
1997-02-27 15:06               ` Zoltan T. Hidvegi [this message]
1997-02-27 18:16               ` Bart Schaefer

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=9702271506.AA21910@lotto.fishkill.ibm.com \
    --to=hzoli@vnet.ibm.com \
    --cc=pws@ifh.de \
    --cc=zsh-workers@math.gatech.edu \
    /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).