From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17947 invoked by alias); 27 Sep 2012 04:41:41 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17292 Received: (qmail 25125 invoked from network); 27 Sep 2012 04:41:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.220.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=b/1tb7P/t9ATfwtsPGyx7QBYq5MwMJcdSjEBqeRj7ZE=; b=Ugn0q5nv8qoHHKEAfb/3sn6+02kV+q3ld0faEhZjnW/J1U0cBebG+8lT1nEmHE52ST PVFPDQosoae3YNkgd3ab0HiFz50VZhjA2qxx0eYHtbAN2AZH74tKeMpi+2FfwN8CYUfb HxuMV7fznmxrf0sW5ubqtvxaLFK7syC8Hiu4yBl2VABVDawH0DSl5OS9d4S4obEbCaZy ljyms9svF3huE/qAJATbJswbUiVRFUHM/xM5oNYZKQy/DMYr06ph9c+oUzB7kIh51BI8 IEmmDDD+0WrqlLG7Yjp0mwgBNrGluYP3zVocWLZU8NpLH4KA58lofxiOKIfDITDfQWyX W2Ag== MIME-Version: 1.0 In-Reply-To: <20120927024236.GA7385@localhost.localdomain> References: <20120927024236.GA7385@localhost.localdomain> Date: Thu, 27 Sep 2012 06:41:25 +0200 Message-ID: Subject: Re: splitting in assignment forms of expansion From: Mikael Magnusson To: Han Pingtian Cc: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 On 27/09/2012, Han Pingtian wrote: > Hello, > > The manpage of zshexpn states about "${=...}": > > Note that splitting is applied to word in the assignment forms > of spec before the assignment to name is performed. This > affects the result of array assignments with the A flag. > > but looks like the splitting isn't applied to word first: > > % print -l ${=xx::=foo bar} > foo > bar > % print -l $xx > foo bar > % > > I'm confused on this. Please help. If you actually use the (A) flag, % print -l ${=xx::=foo bar} . $xx . ${(A)=xx::=foo bar} . $xx foo bar . foo bar . foo bar . foo bar -- Mikael Magnusson