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

Re: [ANN] zsh-bin: statically-linked, hermetic, relocatable zsh

On Sat, Mar 28, 2020 at 5:07 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
> On 2020-03-28 7:02 a.m., Roman Perepelitsa wrote:
> > Zsh from zsh-bin cannot load user-defined compiled modules. There
> > no way to guarantee that user-defined modules have been linked
> > with the same libc as `zsh`, so it's unsafe to load them. This
> > limitation likely cannot be removed.
> What are the consequences of this for an ordinary user?

If an ordinary user compiles a zsh module (*.so file) on their
machine, modifies module_path special parameter and attempts to load
the module with zmodload, they'll get an error.

The inability of zsh-bin to load user-defined modules will likely have
little to no practical consequences. Very few users use custom
compiled zsh modules in the first place. Those who do, virtually
always compile modules on the same machine where they use them. If
they can compile modules on a local machine, they likely have no use
for zsh-bin.

If you are unsure whether you are using custom zsh modules (directly
or indirectly), you aren't.


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