Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Change in FIGNORE behavior
- X-seq: zsh-workers 23564
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: Change in FIGNORE behavior
- Date: Fri, 15 Jun 2007 11:30:27 +0100
- In-reply-to: <20070615102205.GA5088@xxxxxxxxxxxxxxx>
- 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> <20070615102205.GA5088@xxxxxxxxxxxxxxx>
Stephane Chazelas wrote:
> On Fri, Jun 15, 2007 at 11:09:06AM +0100, 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
> [...]
>
> Hi Peter,
>
> why not "one two three" there (0, 1, 2)?
You're thinking of the KSH_ARRAYS option, which does have the effect you
say. The old behaviour of the shell as shown above really was
that inconsistent... if you asked for 0 or 1 you got "one", if you asked
for 2 you got "two", but if you asked for the range 0 to 2 you got not
0 and 1 and 2, but just 1 and 2. That's why we want to remove that
behaviour (at least by default).
--
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