Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Methods of shadowing a builtin call
- X-seq: zsh-users 21206
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Methods of shadowing a builtin call
- Date: Sat, 30 Jan 2016 10:31:58 +0100
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=VVZq6EISrVMLIv2P8eSP1EppZ/sGIGQ+9dKvxdB9brc=; b=rYOXYG70WweKXflP5GFDz5aAcV/AE4agSz2RgUYaQKped3Ajs38aBiNOpbPaqRnGit U5vfp8Qc1GstNFrwWENoGq2MC/0YGtVJkItqbALLHJW8skDLvsHViZ1afPxD5bjHslf6 6QKoXkyJeKNg16LMLmi9dOn2P85rY+BwG1VBz6Sb56OIj86SdLiO6irRuWfvISnEGGBy TIp2Yjzwrjf5efB8WYwpOvEomo2tQgxyWDSbPOIVxL5OGPFFkJs+n8NwfKzG9j6Y4ere WO2gUAthp/Kk37b6Xy0uWRJt9Egg54negsbeir8J1BUGoAawoyFToNXiz4wuR92yOPT+ bjSg==
- In-reply-to: <160129150909.ZM24728@torch.brasslantern.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVAS=iT0t6exL8Z+xYrnyN1O7zx_MEu0smnWXRyq8X6VrA@mail.gmail.com> <160129150909.ZM24728@torch.brasslantern.com>
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