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

Re: lost sysread





On 2024-05-05 08:42, Bart Schaefer wrote:
On Sun, May 5, 2024 at 6:17 AM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
Supposing the error msg was: "Module 'sysread' is not loaded"?
If the module hasn't been loaded yet, how is the shell supposed to
know that sysread isn't an external command?   The whole point of
modules is that the base shell does not have a compiled-in list of all
the possible things that could come from modules.
Sure, it might not be workable.  Just an idea.  As you say there'd have to be some list and that wouldn't be worth the weight.   Or some way of quickly scanning what's available:
zmodload --quick-check ... sorta
Not worth it since I suppose one only need bump into the problem once to be made wise to 'not found' being sometimes 'not loaded' -- it never happened to me before this.  It seems I usually end up with the module loaded even tho I don't know exactly where it gets done. I like helpfulness but not at the cost of bloat.  Yup, if it couldn't be done easily then it's not worth worrying about.







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