Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Compiled files ignore aliases
- X-seq: zsh-workers 37890
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Compiled files ignore aliases
- Date: Fri, 5 Feb 2016 18:24:20 +0100
- Cc: Zsh hackers list <zsh-workers@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; bh=X4bD105GL+lP6jOgaoLSNohgOnMYAeB49TS2BRi3+lc=; b=u9AdGj+MCcrwFas1w3QlTD0U9mOxbeHb169UTXB3yZuxQFFtVH+HYj7qlolJC8C1nv 6Fg+Jdl1LuKLtfD5y+gyMrrj3kPMP/ZP4aHrGlUO0P/GatUfrGEUmyiuhTgWElKcE2E4 HsiBJ6MWBc0jWdNGD4VrNTeAzwkEeLWmrFHN1bLLm0wYjWevThg2Vn0M+kolp3vL6BAI UL8O2jR4HbRLg/ZL2bdtUVeMxmVO8JXb56ZkQ4R2XktpHd/t2s4D423pROV/DiALgH9+ keiKOjgq7Zw2OGsN/q9XFI58Rne/WTmfw1+bZ9gEGjNQaQqCFXRnpSzNSq0Hy/Zqw+t4 fQYw==
- In-reply-to: <160205083708.ZM29641@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVDKxBdZ+9teFDS+Zd3VCvr_JYTpiGtYNuyRicAUfPa4KA@mail.gmail.com> <160205083708.ZM29641@torch.brasslantern.com>
Yes I thought about it and it's reasonable, though unsymmetrical. Zwc
changes things, there isn't full symmetry when sourcing file already
parsed or not, but see *. The "reasonable" is that parsing probably
does lookup each word in a hash table to see if there is an alias for
it. Compiling means skipping that time consuming process. So compiling
is maybe all or maybe mostly about ability of ignoring aliases. In my
project I'm being close to able to fully switch to function shadowing,
the only juggling is about compdef which isn't builtin, but that's too
handable by function shadowing (will have to wrap function by
function). Plugin architecture may be simply extended by constraint
"expect no aliases" and that's all, it's a luck that (*) plugin isn't
"a file to source", it's a software package which may have
constraints.
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author