From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26672 invoked by alias); 29 Sep 2012 01:50:20 -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: 17294 Received: (qmail 25588 invoked from network); 29 Sep 2012 01:50:19 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at linux.vnet.ibm.com does not designate permitted sender hosts) Date: Sat, 29 Sep 2012 09:40:07 +0800 From: Han Pingtian To: zsh-users@zsh.org Subject: Re: splitting in assignment forms of expansion Message-ID: <20120929014006.GB7385@localhost.localdomain> References: <20120927024236.GA7385@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12092901-7282-0000-0000-00000D7639F4 On Thu, Sep 27, 2012 at 06:41:25AM +0200, Mikael Magnusson wrote: > 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 OK thanks. I'll remember this only works with (A) flag. > > -- > Mikael Magnusson