Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Change in FIGNORE behavior
- X-seq: zsh-workers 23566
- From: Peter Stephenson <pws@xxxxxxx>
- To: "zsh workers" <zsh-workers@xxxxxxxxxx>
- Subject: Re: Change in FIGNORE behavior
- Date: Mon, 18 Jun 2007 14:32:12 +0100
- In-reply-to: <20070615110906.04ab8685@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20a807210705291856qe306eeds250f4f9d5f4dd33f@xxxxxxxxxxxxxx> <200705300945.l4U9jUbE009607@xxxxxxxxxxxxxx> <20070530112934.3950357b@xxxxxxxxxxxxxx> <070530035810.ZM29792@xxxxxxxxxxxxxxxxxxxxxx> <200705301127.l4UBROR5010814@xxxxxxxxxxxxxx> <20070530135436.410e11ff@xxxxxxxxxxxxxx> <20070604104901.276f7d83@xxxxxxxxxxxxxx> <070604095654.ZM17620@xxxxxxxxxxxxxxxxxxxxxx> <200706051419.l55EJZSh013059@xxxxxxxxxxxxxx> <20070615110906.04ab8685@xxxxxxxxxxxxxx>
Peter Stephenson wrote:
> array=(one two three)
>
> With KSH_ZERO_SUBSCRIPT set (old behaviour):
> $array[0] -> one
> array[(R)notfound] -> one
> $array[0,2] -> one two
> array[0]=zero array -> (zero two three)
> array[0,2]=(new) array -> (new three)
>
> With KSH_ZERO_SUBSCRIPT not set:
> $array[0] -> [empty]
> array[(R)notfound] -> [empty]
> $array[0,2] -> one two
> array[0]=zero Error
> array[0,2]=(new) array -> (new three)
As there was no further comment (except for Stephane's hint that the the
general reaction was along the lines of "you mean we used to do
*what*?") I've committed this.
I wonder if it's worth adding an option to emulate so you can "emulate
-v 4.2"? It would be highly imperfect since only the MULTIBYTE and
KSH_ZERO_SUBSCRIPT options are useful for this purpose; you're stuck
with anything else.
--
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