From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18193 invoked by alias); 13 Dec 2010 09:48:12 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28525 Received: (qmail 7633 invoked from network); 13 Dec 2010 09:47:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) 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, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Mon, 13 Dec 2010 09:47:46 +0000 From: Peter Stephenson To: Subject: Re: Another ${(z)param} buglet Message-ID: <20101213094746.35712a38@pwslap01u.europe.root.pri> In-Reply-To: <101212172652.ZM9617@torch.brasslantern.com> References: <101207203441.ZM4340@torch.brasslantern.com> <20101208175103.40d6cc29@pwslap01u.europe.root.pri> <101209074233.ZM8003@torch.brasslantern.com> <20101209181632.27d47e95@pwslap01u.europe.root.pri> <20101209201913.43a94f54@pws-pc.ntlworld.com> <20101212224523.423399db@pws-pc.ntlworld.com> <101212172652.ZM9617@torch.brasslantern.com> Organization: Cambridge Silicon Radio X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 13 Dec 2010 09:47:46.0583 (UTC) FILETIME=[CBE10270:01CB9AAA] X-Scanned-By: MailControl A_10_80_00 (www.mailcontrol.com) on 10.68.0.120 On Sun, 12 Dec 2010 17:26:52 -0800 Bart Schaefer wrote: > What say? This could also easily be tweaked to make (z) and (z:...:), > with the :...: having become optional, but we don't have any other > cases where the delimited arg string is completely optional [although > (l) and (r) have optional sub-parts]. Right, that's why I stuck with + there; you've got to guess if something's a delimiter, which adds a non-quite-obvious bit to the existing delimiter rule. If you've got Z you don't necessarily need z+ as well. I was trying to avoid using up yet another letter, but once you do there's no great need to do anything with the original one. -- Peter Stephenson Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom