Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: 4.1: multi-parameter for loop
- X-seq: zsh-workers 15009
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: Re: PATCH: 4.1: multi-parameter for loop
- Date: Wed, 20 Jun 2001 19:39:00 +0100
- In-reply-to: ""Bart Schaefer""'s message of "Wed, 20 Jun 2001 18:20:39 -0000." <1010620182039.ZM9059@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
"Bart Schaefer" wrote:
> On Jun 20, 10:01pm, Andrej Borsenkow wrote:
> } Subject: Re: PATCH: 4.1: multi-parameter for loop
> }
> } On Wed, 20 Jun 2001, Peter Stephenson wrote:
> }
> } > This extends the for syntax to take multiple parameters after it
> }
> } This for sure is incompatible with POSIX and all known shells. It
> } does not make legal scripts fail, but it makes illegal scripts legal.
> } Should we care about it?
>
> In general we've taken the position that this is OK. Consider the
> "foreach" form, or "if [[ test ]] { command }", etc.
I've always considered the shell is already riddled with this sort of
extension. I much more concerned that there's some valid POSIXy case I've
missed that this screws up. I'm perfectly happy to attach it to some
relevant option, but I don't think there is a good one; NO_KSH_ARRAYS would
be very marginal, probably too unexpected.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070
**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential
and/or privileged material.
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is
prohibited.
If you received this in error, please contact the sender and
delete the material from any computer.
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author