lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sat, Feb 25, 2017 at 12:42 PM, Soni L. <fakedme@gmail.com> wrote:
> [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?

It looks intended enough to me? This looks like the kind of thing
you'd use for debugging.

/s/ Adam