From the help:
"... does not compute."
from an old sf movie.
But seriously, I can't get the simplest of snippets to work from the command line or @Lua[]
Running a file does seem to work, but anything quoted is ... unwieldy.
>lua -e print("Hello world")
surprisingly also works, although I would think the quoting is wrong.
So, would you be so kind to explain how I'm supposed to quote a Lua line like;
Regards,
Dirk Jan Spits.
Code:
lua -e'a=1' -e 'print(a)' script.lua
from an old sf movie.

But seriously, I can't get the simplest of snippets to work from the command line or @Lua[]
Running a file does seem to work, but anything quoted is ... unwieldy.
>lua -e print("Hello world")
surprisingly also works, although I would think the quoting is wrong.
So, would you be so kind to explain how I'm supposed to quote a Lua line like;
Code:
print(string.gsub("hello world", "(%w+)", "%1 %1"))
Regards,
Dirk Jan Spits.