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

Re: Feature Patch: Use completion to view parameter values



Marlon Richert wrote on Mon, Mar 29, 2021 at 14:55:17 +0300:
> On Mon, Mar 29, 2021 at 10:39 AM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> > What about parameters implemented by modules?  The getters of those may
> > run arbitrary code, and may have side effects: e.g., imagine an
> > $AUTOINCREMENT parameter that returns an incremented-by-one value every
> > time it's evaluated:
> 
> Is there a way to identify these somehow, so I could filter them out?
> How about if I never auto-evaluate "special" parameters? So, like
> this:

I think that's right.  -workers@: Is it possible for a non-PM_SPECIAL
parameter have a custom getfn?




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