From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13285 invoked from network); 27 Feb 1997 15:25:31 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 27 Feb 1997 15:25:31 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id KAA11398; Thu, 27 Feb 1997 10:16:31 -0500 (EST) Resent-Date: Thu, 27 Feb 1997 10:16:31 -0500 (EST) From: (Zoltan T. Hidvegi) Message-Id: <9702271506.AA21910@lotto.fishkill.ibm.com> Subject: Re: Short loops? In-Reply-To: <199702270932.KAA15453@hydra.ifh.de> from Peter Stephenson at "Feb 27, 97 10:32:21 am" To: pws@ifh.de (Peter Stephenson) Date: Thu, 27 Feb 1997 10:06:03 -0500 (EST) Cc: zsh-workers@math.gatech.edu X-Mailer: ELM [version 2.4ME+ PL31 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"EAzN5.0._n2.FLQ5p"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2934 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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