lua-users home
lua-l archive

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


> That's odd, for some reason I thought it didn't look at the LUA_INIT
> variable when executing a script, only when calling "lua" on the
> command line.

LUA_INIT is a feature of the "lua" command line interpreter, not of the
Lua core. So if you embed Lua in your own C host, LUA_INIT will not be
honored, unless your C host does it explicitly.