From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10979 invoked by alias); 26 Dec 2012 17:14:35 -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: 17499 Received: (qmail 15212 invoked from network); 26 Dec 2012 17:14:34 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.eastlink.ca designates 24.224.136.9 as permitted sender) X-Authority-Analysis: v=2.0 cv=TNAd0CZa c=1 sm=1 a=365tkwEnNdDZEm2nVPJoYw==:17 a=0wiOde9d68gA:10 a=Of8HOEhzQHgA:10 a=8nJEP1OIZ-IA:10 a=UyBoFuEk1WMA:10 a=fX0fNtwTu7FJQGO94QAA:9 a=wPNLvfGTeEIA:10 a=365tkwEnNdDZEm2nVPJoYw==:117 Message-id: <50DB296B.1090708@eastlink.ca> Date: Wed, 26 Dec 2012 08:44:27 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: priority problem of ":|" and ":*" References: <20121224105241.GA24051@localhost.localdomain> <20121225231133.GA8145@localhost.localdomain> <121226011019.ZM32249@torch.brasslantern.com> In-reply-to: <121226011019.ZM32249@torch.brasslantern.com> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit On 26/12/12 01:10 AM, Bart Schaefer wrote: > } For the ":*", we have this result: > } > } % a1=(a b c);a2=(a b c);print "${#a1:*a2}" > } 3 > > This is consistent with the above. > > I admit that this is not intuitive when applying operations to the members > of the array, but it's the way #, ##, %, %%, and :# have always worked, so > it's a bit late to change it and arguably worse to make it different for > :| and :*. (My sympathies if anyone's mail reader is too clever by half > and renders a lot of that as emoticons.) > I think it's astonishing that all this syntax hasn't imploded under it's own weight ;-)