lua-users home
lua-l archive

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


On Mon, Oct 28, 2013 at 6:25 PM, Philipp Janda <siffiejoe@gmx.net> wrote:
Am 28.10.2013 22:08 schröbte Rena:

$ 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.

Debian or Ubuntu, right? This happens in the Debian-specific patch:

-               LUA_CDIR"?.lua;"  LUA_CDIR"?/init.lua;" "./?.lua"
+               LUA_CDIR"?.lua;"  LUA_CDIR"?/init.lua;" "./?.lua;" \
+               LUA_LDIR2"?.lua;"  LUA_LDIR2"?/init.lua;" "./?.lua"

Maybe Enrico Tassi can shed some light (my guess is that it happened by mistake) ...

Philipp






Lubuntu 13.10. I wonder what all that patch does?

--
Sent from my Game Boy.