[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua standalone interpreter executes scripts via?
- From: Jerome Vuarand <jerome.vuarand@...>
- Date: Wed, 6 Aug 2014 11:42:51 +0100
2014-08-06 4:00 GMT+01:00 Stefano <phd.st.p@gmail.com>:
> In 'lua [options] [script [args]]' it seems that neither _G.loadfile nor
> _G.loadfile are used to execute 'script', is this correct?
"neither _G.loadfile nor _G.loadfile": which one is wrong?
> Also rephrased, is there a way to have 'lua -lDSL test.lua' pre-process
> tests.lua before execution? I am aware I can use 'lua DSL test.lua' instead
> with an appropriate DSL lua script.
You can write 'lua -lDSL -e "assert(loadfile(\"test.lua\"))()"' if
your module changes loadfile (or loadfile).