From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7657 invoked from network); 6 Aug 1997 12:40:10 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 6 Aug 1997 12:40:10 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.8.5/8.8.5) id IAA02659; Wed, 6 Aug 1997 08:26:43 -0400 (EDT) Resent-Date: Wed, 6 Aug 1997 08:26:43 -0400 (EDT) Date: Wed, 6 Aug 1997 16:27:20 +0400 (MSD) From: Andrej Borsenkow X-Sender: bor@itsrm1 Reply-To: borsenkow.msk@sni.de To: hzoli@VNET.IBM.COM cc: Zsh workers list Subject: Re: RC_EXPAND_PARAM final patch In-Reply-To: <9708041721.AA19076@belgium.fishkill.ibm.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Resent-Message-ID: <"UNUzX2.0.Uf.2s6wp"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3427 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Mon, 4 Aug 1997 hzoli@VNET.IBM.COM wrote: > > But this would mean an other change: ${x}{a,b} will expand to 4 words, > > x ya x yb > > instead of the current x ya yb. The current behaviour is the way ksh > behaves, and the planned new one is similar to bash (you can use $* and $@ > to study the behaviour of arrays in bash and ksh). > Currently (3.1.2 + RC_EXPAND_PARAM final patch): % a=(a "b ") % x=(x "y z") % unsetopt shwordsplit % args ${^a}1 "a1" "b 1" % args ${^x}1 "x1" "y z1" It's O.K., but ... % setopt shwordsplit % args ${^a}1 "a1" "b1" "1" % args ${^x}1 "x1" "y1" "z1" ???? Shouldn't it be "x1" "y" "z1" ? ------------------------------------------------------------------------- Andrej Borsenkow Fax: +7 (095) 252 01 05 SNI ITS Moscow Tel: +7 (095) 252 13 88 NERV: borsenkow.msk E-Mail: borsenkow.msk@sni.de -------------------------------------------------------------------------