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

Re: [patch] Re: UTF-8 and PCRE and metafy



On Mon, 24 Oct 2011 07:35:29 -0400
Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx> wrote:
> At some point, there was a discussion about whether $MATCH/$match should
> be _unset_ when regex tests fail: at present we don't.  Did anyone have
> any strong opinions on this?  At the moment, I unset manually after each
> print of results, for a batch of simple tests I added.

I doubt anyone's dependent on which way this is written, it would be an
odd way to write code.  However, it's sort of semi-standard that if what
you were doing didn't work you don't touch the variables you would have
set.  Possible there are already cases where this isn't true.

-- 
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
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog



Messages sorted by: Reverse Date, Date, Thread, Author