Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Change in FIGNORE behavior
- X-seq: zsh-workers 23499
- From: Peter Stephenson <pws@xxxxxxx>
- To: "zsh workers" <zsh-workers@xxxxxxxxxx>
- Subject: Re: Change in FIGNORE behavior
- Date: Wed, 30 May 2007 12:27:24 +0100
- In-reply-to: <070530035810.ZM29792@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20a807210705291856qe306eeds250f4f9d5f4dd33f@xxxxxxxxxxxxxx> <200705300945.l4U9jUbE009607@xxxxxxxxxxxxxx> <20070530112934.3950357b@xxxxxxxxxxxxxx> <070530035810.ZM29792@xxxxxxxxxxxxxxxxxxxxxx>
Bart Schaefer wrote:
> var[(R)pattern] is an assignable construct. Previously
>
> var[(R)missing]=something
>
> would replace the first element. Now it appends an element to the end.
Hmmm... (R) was documented to refer to the last match found, so anyone
relying on it replacing something at the beginning (or, indeed, doing
anything well-defined at all) on a failure is making unwarranted
assumptions. Still, if this is going to cause multiple hard to find
problems it's going to be a continuing nuisance.
It would be nice to be able to detect if the index is going to be used
for something other than extracting a single element and use the first
index if so, but the current interface doesn't make that easy.
--
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