From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7675 invoked from network); 14 Nov 2003 17:02:50 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 14 Nov 2003 17:02:50 -0000 Received: (qmail 25801 invoked by alias); 14 Nov 2003 17:02:23 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6774 Received: (qmail 25785 invoked from network); 14 Nov 2003 17:02:20 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 14 Nov 2003 17:02:20 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [193.109.254.211] by sunsite.dk (MessageWall 1.0.8) with SMTP; 14 Nov 2003 17:2:16 -0000 X-VirusChecked: Checked X-Env-Sender: okiddle@yahoo.co.uk X-Msg-Ref: server-16.tower-36.messagelabs.com!1068829335!1815248 X-StarScan-Version: 5.1.13; banners=-,-,- Received: (qmail 17351 invoked from network); 14 Nov 2003 17:02:15 -0000 Received: from iris.logica.co.uk (158.234.9.163) by server-16.tower-36.messagelabs.com with SMTP; 14 Nov 2003 17:02:15 -0000 Received: from gmcs3.local ([158.234.142.61]) by iris.logica.co.uk (8.12.3/8.12.3/Debian -4) with ESMTP id hAEH2EAb004023; Fri, 14 Nov 2003 17:02:14 GMT Received: from gmcs3.local (localhost [127.0.0.1]) by gmcs3.local (8.11.6/8.11.6/SuSE Linux 0.5) with ESMTP id hAEH1TQ24940; Fri, 14 Nov 2003 18:01:29 +0100 cc: zsh-users@sunsite.dk X-VirusChecked: Checked X-StarScan-Version: 5.0.7; banners=.,-,- In-reply-to: <1031114161247.ZM2353@candle.brasslantern.com> From: Oliver Kiddle References: <644.1068806872@csr.com> <22727.1068815359@gmcs3.local> <1031114161247.ZM2353@candle.brasslantern.com> To: Bart Schaefer Subject: Re: Completion function for bitkeeper? Date: Fri, 14 Nov 2003 18:01:29 +0100 Message-ID: <24938.1068829289@gmcs3.local> Bart wrote: > } > For '*:desc:{_foo}' style actions, this is run: > } > > } > eval "$action[@]" > } > > } > and for '*:desc: _foo', this is run: > } > > } > eval "action=( $action )" > } > "$action[@]" > } > > } > Can anyone tell me what practical difference that makes, if any? > Word splitting is vastly different in the two cases. It happens within > the words of $action in the second case, but does not in the first case. Really? As far as I can see, they both get exactly the same word splitting: % a=( print -l one two three\ four 'five\ six' ) % eval "$a[@]" one two three four five six % eval "b=( $a )" % "$b[@]" one two three four five six > Also in the second example, only "alias -g" aliases are expanded. Not > that I think that was the intended behavior, but ... That's odd. But, as we're using autoload -U, that has no effect on _argumemts. Oliver