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

Re: PATCH: reverse matching (tentative)

On Tue, 15 May 2007 17:06:37 -0400
"Matt Wozniski" <godlygeek@xxxxxxxxx> wrote:
> On 5/15/07, Peter Stephenson wrote:
> >    match.  If the option KSH_ARRAYS is in effect, the subscript  is
> >    still  0 for a failed match; this cannot be distinguished from a
> >    successful match without testing ${array[0]}  against  the  pat-
> >    tern.
> I have a function in my .zshrc that has to work around exactly that
> 'feature' - I'd be all for just removing that and having it return a
> blank string.

I've committed this.

Only (R) has changed.  Indices returned from subscript searches should
be as before.

Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070

To access the latest news from CSR copy this link into a web browser:  http://www.csr.com/email_sig.php

To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview

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