lua-users home
lua-l archive

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

In short, this is how Unix/Linux work. Current directory has no such special importance (in linking or loading programs) as in Windows. I think this is for security reasons, mainly.

The real question is, should this be especially mentioned as part of Lua documentation, since many users might not "see it coming", especially if they're used to different behaviour on the Windows side of things (even when using Lua).

The samples in Lua documentation are right:


Kurt Jung kirjoitti 21.10.2007 kello 13:37:

mpb wrote:

> It seems that LUA_CPATH=?.so is incorrect. Why? Is this
> documented somewhere?

This is the correct behavior. See the description of 'dlopen'
in dlopen's man page.

Kurt Jung