Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Another ${(z)param} buglet



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