On Wed, Jul 27, 2011 at 5:50 PM, Lorenzo Donati
<lorenzodonatibz@interfree.it <mailto:lorenzodonatibz@interfree.it>> wrote:
Hi all!
Lately I've been struggling to force Lua interpreter to ignore
LUA_INIT (on Windows). Since I hate to put shell invocation scripts
everywhere (.cmd files, I mean) to set LUA_INIT to an empty value,
I'd like to be able to invoke the interpreter like this:
lua --noinit myscript.lua
(I'm thinking to do the mod myself, but maybe this may be useful in
general and may be worth adding to the standard distro).
Anyway, if someone has already a smart solution for this problem
(i.e. that doesn't involve modifying the source), I'll be glad to
have any pointer.
lua -e"package.path='';package.cpath=''" myscript.lua
Will that do?
It's more verbose than the --init flag, but I think it does what you need.