From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4948 invoked from network); 5 Jul 2001 14:01:54 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 5 Jul 2001 14:01:54 -0000 Received: (qmail 15109 invoked by alias); 5 Jul 2001 14:00:52 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15258 Received: (qmail 15056 invoked from network); 5 Jul 2001 14:00:51 -0000 From: Sven Wischnowsky Date: Thu, 5 Jul 2001 15:59:34 +0200 (MET DST) Message-Id: <200107051359.PAA10777@beta.informatik.hu-berlin.de> To: zsh-workers@sunsite.dk Subject: Re: Short `if' In-Reply-To: Peter Stephenson wrote: > I can't get the short form of `if' to work, described in the manual as: > > if LIST SUBLIST > A short form of the alternate `if'. > > 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 > % if true { print hello } # didn't expect this to work > zsh: parse error near `}' > 14:55% if true; { print hello } # shouldn't be dependent on shortloops(?) > if> ^C That's very peculiar. I don't know either, but % if [[ -n x ]] echo hello works. Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de