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

Re: Methods of shadowing a builtin call

On 30 January 2016 at 00:09, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> The only way to track option changes is by examining deltas of values
> in the $options hash.

Thanks, don't know how could I miss this. I've re-implemented the
feature of tracking what options does a plugin change via $options
diffing. Code is much simpler, result also quite better – user sees
what changed in his environment, not what was done step by step.

> If instead the functions are fully defined, body and all, "in-line" in
> the z-sy-h source files, there is no way to suppress this, because the
> aliases expand when the function is *parsed*, and therefore the expanded
> command text is already in place later when it is executed.

Quite clear. Was hoping for some third method of shadowing,
add-zsh-hook and preexec maybe, something like this.

Best regards,
Sebastian Gniazdowski

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