Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: alternative method for a simple for
- X-seq: zsh-users 14387
- From: Peter Stephenson <pws@xxxxxxx>
- Subject: Re: alternative method for a simple for
- Date: Tue, 15 Sep 2009 13:03:54 +0100
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <DF68D91D-30AC-4792-B24E-FB183E2325AD@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: CSR
- References: <20090915125419.3528@binki> <200909151040.35397.joke.de.buhr@xxxxxxxxx> <A0C19B87-93F9-472D-AFEE-DCCBD766AACD@xxxxxxxxxxx> <237967ef0909150309m47ca10afh7e5dd8c7f8ef03a1@xxxxxxxxxxxxxx> <DF68D91D-30AC-4792-B24E-FB183E2325AD@xxxxxxxxxxx>
On Tue, 15 Sep 2009 13:33:18 +0200
Sebastian Stark <seb-zsh@xxxxxxxxxxx> wrote:
> ALTERNATE FORMS FOR COMPLEX COMMANDS
> Many of zshâs complex commands have alternate forms. These
> particular versions of complex commands should be conâ
> sidered deprecated and may be removed in the future.
> The versions in the previous section should be preferred
> instead.
This has understandably caused quite a lot of confusion. There are good
reasons to avoid using the alternative forms, but actually there are no
plans to take them out and haven't been since I took over almost ten years
ago now(!) It's probably better to change this, though I'd certainly like
people to think before using the non-standard forms.
Index: Doc/Zsh/grammar.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Zsh/grammar.yo,v
retrieving revision 1.16
diff -u -r1.16 grammar.yo
--- Doc/Zsh/grammar.yo 10 Jun 2008 08:50:43 -0000 1.16
+++ Doc/Zsh/grammar.yo 15 Sep 2009 11:54:40 -0000
@@ -366,10 +366,10 @@
sect(Alternate Forms For Complex Commands)
cindex(alternate forms for complex commands)
cindex(commands, alternate forms for complex)
-Many of zsh's complex commands have alternate forms. These particular
-versions of complex commands should be considered deprecated and may be
-removed in the future. The versions in the previous section should be
-preferred instead.
+Many of zsh's complex commands have alternate forms. These are
+non-standard and are likely not to be obvious even to seasoned shell
+programmers; they should not be used anywhere that portability is a
+concern.
The short versions below only work if var(sublist) is of the form `tt({)
var(list) tt(})' or if the tt(SHORT_LOOPS) option is set. For the tt(if),
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
Messages sorted by:
Reverse Date,
Date,
Thread,
Author