lua-users home
lua-l archive

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


On Fri, Jun 5, 2015 at 2:33 PM, Scott Morgan <blumf@blueyonder.co.uk> wrote:
> Why the different behaviours between platforms?

The short answer is that it's surprisingly tricky to get the
executable's actual location on the filesystem on non-Windows systems;
argv[0] is not your friend.  A common tactic is to customize a
sandboxed Lua by modifying luaconf.h (e.g. luabuild)