lua-users home
lua-l archive

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


Hi,

I am afraid I could not find your explanation. Would this "double
checking" be used only for compatibility? Or do you propose them as
a "feature"?

It is a feature request. The reason is simple. If you have Lua 5.1 and
Lua 5.0 installed on the same system, they will fight for control of
variables LUA_INIT, LUA_PATH, and LUA_CPATH. What John proposed was that
each version of Lua should check first for version specific environment
variables, and only if those are not defined should Lua resort to the
generic variables.  For example, Lua 5.1 would first try LUA_5_1_INIT,
and, if not found, then try LUA_INIT. This is what the patch
accomplishes.

Regards,
Diego.