Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: `try' syntax
- X-seq: zsh-workers 20058
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: Re: PATCH: `try' syntax
- Date: Wed, 16 Jun 2004 16:33:25 +0200
- In-reply-to: <Pine.LNX.4.44.0406151254190.29762-100000@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <Pine.LNX.4.44.0406151254190.29762-100000@xxxxxxxxxxxxxxxxxx>
Bart wrote:
> Hmm ... wouldn't
>
> local -a +h reswords dis_reswords
>
> cover all possible cases? (Hmm, again; no, it seems it does not, because
> either the values aren't restored and/or assigning to these arrays doesn't
> accomplish enable/disable. Odd, but oh, well.)
It's not odd if you look briefly at how everything in the parameters
module is implemented. When a value is looked up it gets the
information from the internal structure and returns it. Making local
save and restore these internal structures would be fairly messy.
Ideally zsh would store all internal information directly in parameters
so local would work on them automatically. In the long term that'd be a
better thing to aim at than adding lots of local* options.
> On Tue, 15 Jun 2004, Peter Stephenson wrote:
> > As things stand I'm not sure I'm going to have any free time before
> > 2008, but if I do is this worth trying? (In other words, is it
> > reasonably agreeable to everyone interested?)
I'm agreeable to it.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author