Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: Short `if'
- X-seq: zsh-workers 15260
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "Zsh hackers list" <zsh-workers@xxxxxxxxxx>
- Subject: RE: Short `if'
- Date: Thu, 5 Jul 2001 18:17:22 +0400
- Importance: Normal
- In-reply-to: <Tc0a88d015490060f74@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
>
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author