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

Re: Nasty bug in array-element typeset assignments



Peter Stephenson wrote:
> 
> Borsenkow Andrej wrote:
> > > "Bart Schaefer" wrote:
> > > >         local 'foo[1]'=X
> > >
> > > Is this supposed to be supported?  I certainly haven't done anything about
> > > it.
> > >
> >
> > Yes, recent changes has enabled it.

Really? So what would it do? Make the whole foo array local or just the
first element? Clearly neither works.

> Yuk.  Whoever decided on this has got a job on their hands.

> Typeset is going to get *very* confused.  Each change like this multiplies,

I'd say that it already is very confused. I haven't had time for a
couple of weeks now but last time I looked at the nameref stuff, that
code was doing my head in. However, I wouldnt have thought it'd be too
hard to get it to print an error message for the above case.

Oliver



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