summaryrefslogtreecommitdiff
path: root/lualibs-os.lua
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-05-10 21:19:21 +0300
committerKhaled Hosny <khaledhosny@eglug.org>2010-05-10 21:19:21 +0300
commitc10ee230c83a5dfcda077652c2b16bc8f8a9d221 (patch)
tree053cdc5f1fa7f46d7594eb51c4ab55f9853794f0 /lualibs-os.lua
parent751cd5a244ee7504e9960c45252b05f431a9c098 (diff)
downloadlualibs-c10ee230c83a5dfcda077652c2b16bc8f8a9d221.tar.gz
Sync with ConTeXt stable (stable 2010.05.08)
No functions removed, few new additions.
Diffstat (limited to 'lualibs-os.lua')
-rw-r--r--lualibs-os.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lualibs-os.lua b/lualibs-os.lua
index 4f0c0c1..fba2cd3 100644
--- a/lualibs-os.lua
+++ b/lualibs-os.lua
@@ -87,12 +87,13 @@ end
--~ print(os.date("%H:%M:%S",os.time()))
-- no need for function anymore as we have more clever code and helpers now
+-- this metatable trickery might as well disappear
os.resolvers = os.resolvers or { }
local resolvers = os.resolvers
-local osmt = getmetatable(os) or { __index = function(t,k) t[k] = "unset" return "unset" end }
+local osmt = getmetatable(os) or { __index = function(t,k) t[k] = "unset" return "unset" end } -- maybe nil
local osix = osmt.__index
osmt.__index = function(t,k)