From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27053 invoked from network); 20 Jun 2001 18:39:35 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 20 Jun 2001 18:39:35 -0000 Received: (qmail 24606 invoked by alias); 20 Jun 2001 18:38:56 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15009 Received: (qmail 24595 invoked from network); 20 Jun 2001 18:38:56 -0000 Message-ID: To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: PATCH: 4.1: multi-parameter for loop In-reply-to: ""Bart Schaefer""'s message of "Wed, 20 Jun 2001 18:20:39 -0000." <1010620182039.ZM9059@candle.brasslantern.com> Date: Wed, 20 Jun 2001 19:39:00 +0100 From: Peter Stephenson "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 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. **********************************************************************