On 2024-05-05 08:42, Bart Schaefer wrote:
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: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.
zmodload --quick-check ... sortaNot 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.