From 68130b80a6f57df3db4c522abb4a5c2c0ce544e1 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Fri, 20 Dec 2019 17:48:25 +1100 Subject: [PATCH] made the shell look at libraries in _G.libs as well as just _G --- exec/shell.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exec/shell.lua b/exec/shell.lua index 9334f22..e06ae69 100644 --- a/exec/shell.lua +++ b/exec/shell.lua @@ -21,6 +21,8 @@ setmetatable(shenv,{__index=function(_,k) local fp = findPath(k) if _G[k] then return _G[k] + elseif _G.libs[k] then + return _G.libs[k] elseif fp then return function(...) local tA = {...}