lua-users home
lua-l archive

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


On Fri, May 27, 2022 at 8:22 PM Duke Normandin <dukeofpurl@gmx.com> wrote:
[quote]
You can compile the program into Lua's bytecode by executing
following on your shell:

$ luac bottles_of_matte.lua -o bottles_of_matte.luac
[/quote]

It chokes on the `-o' option!

It works fine, but you have to put the source file as the last argument and option flags like '-o' before that.

Demonstration:

$ ls test.l*
test.lua
$ luac test.lua -o test.luac
luac: cannot open -o: No such file or directory
$ ls test.l*
test.lua
$ luac -o test.luac test.lua
$ ls test.l*
test.lua  test.luac