From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7179 invoked from network); 12 Feb 2001 14:12:52 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 12 Feb 2001 14:12:52 -0000 Received: (qmail 9294 invoked by alias); 12 Feb 2001 14:12:38 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13454 Received: (qmail 9283 invoked from network); 12 Feb 2001 14:12:37 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de) From: "Andrej Borsenkow" To: Subject: RE: PATCH: 3.1.9-dev-8: Re: Word splitting in zsh Date: Mon, 12 Feb 2001 17:12:32 +0300 Message-ID: <002701c094fd$d7680890$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <000901c094c6$d2bcd500$21c9ca95@mow.siemens.ru> Importance: Normal > > > > Is the following a bug in shell and should zsh emulate it? > And is this a bug or feature in zsh (with Bart's patch): bor@itsrm2% baz=("aa bb" cc) bor@itsrm2% print -l "${(A)foo=$baz[@]}" aa bb cc Again the same problem for ${name=word} - should the whole evaluate to the $name (with proper quoting) or to the word? I believe it is a bug because next command where foo is already defined: bor@itsrm2% print -l "${(A)foo=$baz[@]}" aa bb cc both cases should evaluate to the value of $foo, if I read specs properly, and be identical, i.e. as in the second case. -andrej