From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5112 invoked from network); 5 Jul 2001 14:18:28 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 5 Jul 2001 14:18:28 -0000 Received: (qmail 11155 invoked by alias); 5 Jul 2001 14:17:24 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15260 Received: (qmail 11140 invoked from network); 5 Jul 2001 14:17:23 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de) From: "Andrej Borsenkow" To: "Zsh hackers list" Subject: RE: Short `if' Date: Thu, 5 Jul 2001 18:17:22 +0400 Message-ID: <003101c1055d$356b0cb0$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006 > > What am I doing wrong? I don't need it, I just need the code, manual and > tests to be consistent. > > % setopt shortloops > % if true; print hello > if> ^C This is not supposed to work (as long as I can believe docs), shortloops or no shortloops. > % if true { print hello } # didn't expect this to work > zsh: parse error near `}' But this should, irrespectively of shortloops (if SUBLIST is of the form `{ LIST }' or if the SHORT_LOOPS option is set) > 14:55% if true; { print hello } # shouldn't be dependent on > shortloops(?) > if> ^C > Ditto. -andrej