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

Re: Change in FIGNORE behavior



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