LUA - Online Linux Manual PageSection : 1
Updated : $Date: 2020/05/21 19:31:21 $
NAMElua − Lua interpreter
SYNOPSISlua [ options ] [ script [ args ] ]
DESCRIPTIONlua is the standalone Lua interpreter. It loads and executes Lua programs, either in textual source form or in precompiled binary form. (Precompiled binaries are output by luac, the Lua compiler.) lua can be used as a batch interpreter and also interactively. After handling the options, the Lua program in file script is loaded and executed. The args are available to script as strings in a global table named arg and also as arguments to its main function. When called without arguments, lua behaves as lua −v −i" if the standard input is a terminal, and as lua −" otherwise. In interactive mode, lua prompts the user, reads lines from the standard input, and executes them as they are read. If the line contains an expression, then the line is evaluated and the result is printed. If a line does not contain a complete statement, then a secondary prompt is displayed and lines are read until a complete statement is formed or a syntax error is found. Before handling command line options and scripts, lua checks the contents of the environment variables LUA_INIT_5_4 and LUA_INIT, in that order. If the contents are of the form '@filename', then filename is executed. Otherwise, the contents are assumed to be a Lua statement and is executed. When LUA_INIT_5_4 is defined, LUA_INIT is ignored.
OPTIONS−e stat execute statement stat. −i enter interactive mode after executing script. −l name require library name into global name. −v show version information. −E ignore environment variables. −W turn warnings on. −− stop handling options. − stop handling options and execute the standard input as a file.
ENVIRONMENT VARIABLESThe following environment variables affect the execution of lua. When defined, the version-specific variants take priority and the version-neutral variants are ignored. LUA_INIT, LUA_INIT_5_4 Code to be executed before command line options and scripts. LUA_PATH, LUA_PATH_5_4 Initial value of package.cpath, the path used by require to search for Lua loaders. LUA_CPATH, LUA_CPATH_5_4 Initial value of package.cpath, the path used by require to search for C loaders.
EXIT STATUSIf a script calls os.exit, then lua exits with the given exit status. Otherwise, lua exits with EXIT_SUCCESS (0 on POSIX systems) if there were no errors and with EXIT_FAILURE (1 on POSIX systems) if there were errors. Errors raised in interactive mode do not cause exits.
DIAGNOSTICSError messages should be self explanatory.
SEE ALSOluac(1)
The documentation at lua.org, especially section 7 of the reference manual.
AUTHORSR. Ierusalimschy, L. H. de Figueiredo, W. Celes 0
Johanes Gumabo
Data Size : 8,906 byte
man-lua.1Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 236,889
Visitor ID : :
Visitor IP : 3.148.115.187 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.