I'm trying to run a Lua script from Windows but I only get errors. I've put my script inside the same folder of the Lua shell but if I write the same line of my Lua book % lua name.lua
I get stdin:1: unexpected symbol near '%'
If i remove the % i get stdin:1: syntax error near 'prova'
. I've found another thread here on stackoverflow. I've tried what the answer said but it doesn't work.
There's two different problems here:
%
is meant to represent the prompt, so you shouldn't actually type it.lua name.lua
from the command prompt, not from the Lua REPL.Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments