Launch the Lua interpreter, or execute a Lua script entry file.
- Repository:
opencomputers - System:
plan9k - Type:
command
OpenComputers/src\main\resources\assets\opencomputers\loot\plan9k\bin\lua.luaOpenComputers/src\main\resources\assets\opencomputers\doc\de_DE\general\lua.mdOpenComputers/src\main\resources\assets\opencomputers\doc\en_US\general\lua.mdOpenComputers/src\main\resources\assets\opencomputers\doc\fr_FR\general\lua.mdOpenComputers/src\main\resources\assets\opencomputers\doc\ru_RU\general\lua.mdOpenComputers/src\main\resources\assets\opencomputers\doc\zh_CN\general\lua.mdOpenComputers/src\main\resources\assets\opencomputers\loot\openos\usr\man\luaOpenSecurity/src\main\resources\assets\opensecurity\lua\SecureOS\usr\man\lua
lualua FILE [ARGS...]When called without arguments, the command starts the bundled Lua shell entry script. When a filename is provided, it reads that file, strips a shebang if present, loads it, and executes it with the remaining arguments.
FILE: Optional Lua script to execute instead of the interactive shell.ARGS...: Optional extra arguments forwarded to the loaded script.
luaLaunch the interactive Lua interpreter shell.
lua /home/test.lua foo barExecute /home/test.lua and pass foo and bar as script arguments.
- The interpreter shell will attempt to resolve unknown globals by calling
requirewith that name. - Syntax or runtime errors are written to standard error and cause a false exit status.