summaryrefslogtreecommitdiff
path: root/tex/context/base/l-os.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/l-os.lua')
-rw-r--r--tex/context/base/l-os.lua12
1 files changed, 11 insertions, 1 deletions
diff --git a/tex/context/base/l-os.lua b/tex/context/base/l-os.lua
index 08136b24d..1e7c91757 100644
--- a/tex/context/base/l-os.lua
+++ b/tex/context/base/l-os.lua
@@ -193,7 +193,14 @@ os.resolvers = os.resolvers or { } -- will become private
local resolvers = os.resolvers
-local osmt = getmetatable(os) or { __index = function(t,k) t[k] = "unset" return "unset" end } -- maybe nil
+local osmt = getmetatable(os) or { __index = function(t,k)
+ local v = function()
+ print(format("function os.%s in namespace is undefined"))
+ end
+ t[k] = v
+ return v
+end } -- maybe nil
+
local osix = osmt.__index
osmt.__index = function(t,k)
@@ -456,6 +463,9 @@ function os.now()
return date("!%Y-%m-%d %H:%M:%S") -- 2011-12-04 14:59:12
end
+if not os.sleep and socket then
+ os.sleep = socket.sleep
+end
-- print(os.which("inkscape.exe"))
-- print(os.which("inkscape"))