How to properly set up environment for Lua

Viewed 1530

could you please help me set up environment for Lua in Windows. I have added following C:\lua\bin to the PATH system env. variables. But when I try to run file for example test.lua with print("hello world") interpreter probably sees the file but I get this message in git-bash:

$ test.lua
/c/lua/bin/test.lua: line 1: syntax error near unexpected token "hello world"
/c/lua/bin/test.lua: line 1: print("hello world")

And when I try to open test.lua in cmd there are no errors just the Notepad with code opens...but code in file isnt executed. Thank you

3 Answers
Related