Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Another ${(z)param} buglet
- X-seq: zsh-workers 28525
- From: Peter Stephenson <Peter.Stephenson@xxxxxxx>
- To: <zsh-workers@xxxxxxx>
- Subject: Re: Another ${(z)param} buglet
- Date: Mon, 13 Dec 2010 09:47:46 +0000
- In-reply-to: <101212172652.ZM9617@xxxxxxxxxxxxxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Cambridge Silicon Radio
- References: <101207203441.ZM4340@xxxxxxxxxxxxxxxxxxxxxx> <20101208175103.40d6cc29@xxxxxxxxxxxxxxxxxxxxxxxxx> <101209074233.ZM8003@xxxxxxxxxxxxxxxxxxxxxx> <20101209181632.27d47e95@xxxxxxxxxxxxxxxxxxxxxxxxx> <20101209201913.43a94f54@xxxxxxxxxxxxxxxxxxx> <20101212224523.423399db@xxxxxxxxxxxxxxxxxxx> <101212172652.ZM9617@xxxxxxxxxxxxxxxxxxxxxx>
On Sun, 12 Dec 2010 17:26:52 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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 <pws@xxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author