lua-users home
lua-l archive

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


On Sun, May 1, 2016 at 5:01 PM, Nagaev Boris <bnagaev@gmail.com> wrote:
> On Sun, May 1, 2016 at 4:20 PM, Vadim A. Misbakh-Soloviov
> <lua-l@mva.name> wrote:
>>> I can't find information about LUA_PATH and LUA_CPATH changes in Lua
>>> 5.2 and Lua 5.3 manuals. What exactly do you mean?
>>
>> Just take a look on cut betwen "==="'s in that my message, you're answered on.
>>
>> Lua<5.2 and LuaJIT has path/cpath order which makes it to prefer "local"
>> modules (from cwd) over "system-wide" ones.
>> It was quite usefull behaviour, especially for testing.
>> But 5.2/5.3 introduced new order, where system-wide paths are more preferable
>> than local ones (not sure, if 5.2 has it from its first release, tho).
>>
>> I'd show exact commit and lines to clarify what I mean, if lua were in git :-/
>>
>> --
>> wbr,
>> mva
>
> So hererocks does it Lua 5.3 way even for Lua 5.1. Reported:
> https://github.com/mpeterv/hererocks/issues/25
>

Sorry for the noise, I forgot to reset LUA_PATH and LUA_CPATH while
testing. After I set LUA_PATH=';;' LUA_CPATH=';;' it works as
expected. There is no bug with the order.



-- 


Best regards,
Boris Nagaev