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

RE: PATCH: _zmodload



>
> And those builtins completed... offering the builtins currently
> defined is a simple solution for a hard problem, but will be wrong in
> most cases. For the modules we have currently, the builtins could be
> derived with something like `nm <module> | grep bin_'. Unfortunately,
> this isn't guaranteed to be correct and won't work for autoloaded
> parameters, conditions and so on anyway. Maybe trying to find a .mdd
> file and looking at it would be a better solution. Or maybe giving up
> and doing what _zmodload does now... sigh.
>

Or define extra entry point, load module, ask it about autoloaded objects and
unload. This should be the most portable. Or just leave it loaded assuming
that user will need it anyway.

Can it be useful for something else?

-andrej



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