[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: package.path redundancy?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 28 Oct 2013 20:10:55 -0200
> $ lua -E
> Lua 5.2.2 Copyright (C) 1994-2013 Lua.org, PUC-Rio
> > =package.path:gsub(';', '\n')
> /usr/local/share/lua/5.2/?.lua
> /usr/local/share/lua/5.2/?/init.lua
> /usr/local/lib/lua/5.2/?.lua
> /usr/local/lib/lua/5.2/?/init.lua
> ./?.lua
> /usr/share/lua/5.2/?.lua
> /usr/share/lua/5.2/?/init.lua
> ./?.lua 7
>
> Why is ./?.lua present twice? The same redundancy isn't present in
> package.cpath.
I get this in Mac OS X:
% lua -E
Lua 5.2.2 Copyright (C) 1994-2013 Lua.org, PUC-Rio
> =package.path:gsub(';', '\n')
/usr/local/share/lua/5.2/?.lua
/usr/local/share/lua/5.2/?/init.lua
/usr/local/lib/lua/5.2/?.lua
/usr/local/lib/lua/5.2/?/init.lua
./?.lua 4