[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: LUA_INIT can replace require
- From: "Soni L." <fakedme@...>
- Date: Sat, 25 Feb 2017 17:42:09 -0300
[soniex2@soniex-pc lua]$ cat init.lua
local _require = require
require = function(...)
print(...)
return _require(...)
end
[soniex2@soniex-pc lua]$ LUA_INIT='@init.lua' lua -l init
init
Lua 5.3.4 Copyright (C) 1994-2017 Lua.org, PUC-Rio
> ^C
[soniex2@soniex-pc lua]$
Is this intended?
--
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.