]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/opentelemetry-cpp/third_party/prometheus-cpp/3rdparty/civetweb/src/third_party/lua-5.3.6/doc/lua.1
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / third_party / prometheus-cpp / 3rdparty / civetweb / src / third_party / lua-5.3.6 / doc / lua.1
CommitLineData
1e59de90
TL
1.\" $Id: lua.man,v 1.14 2016/10/17 15:43:50 lhf Exp $
2.TH LUA 1 "$Date: 2016/10/17 15:43:50 $"
3.SH NAME
4lua \- Lua interpreter
5.SH SYNOPSIS
6.B lua
7[
8.I options
9]
10[
11.I script
12[
13.I args
14]
15]
16.SH DESCRIPTION
17.B lua
18is the standalone Lua interpreter.
19It loads and executes Lua programs,
20either in textual source form or
21in precompiled binary form.
22(Precompiled binaries are output by
23.BR luac ,
24the Lua compiler.)
25.B lua
26can be used as a batch interpreter and also interactively.
27.LP
28The given
29.I options
30are handled in order and then
31the Lua program in file
32.I script
33is loaded and executed.
34The given
35.I args
36are available to
37.I script
38as strings in a global table named
39.BR arg .
40If no options or arguments are given,
41then
42.B "\-v \-i"
43is assumed when the standard input is a terminal;
44otherwise,
45.B "\-"
46is assumed.
47.LP
48In interactive mode,
49.B lua
50prompts the user,
51reads lines from the standard input,
52and executes them as they are read.
53If the line contains an expression or list of expressions,
54then the line is evaluated and the results are printed.
55If a line does not contain a complete statement,
56then a secondary prompt is displayed and
57lines are read until a complete statement is formed or
58a syntax error is found.
59.LP
60At the very start,
61before even handling the command line,
62.B lua
63checks the contents of the environment variables
64.B LUA_INIT_5_3
65or
66.BR LUA_INIT ,
67in that order.
68If the contents is of the form
69.RI '@ filename ',
70then
71.I filename
72is executed.
73Otherwise, the string is assumed to be a Lua statement and is executed.
74.SH OPTIONS
75.TP
76.BI \-e " stat"
77execute statement
78.IR stat .
79.TP
80.B \-i
81enter interactive mode after executing
82.IR script .
83.TP
84.BI \-l " name"
85execute the equivalent of
86.IB name =require(' name ')
87before executing
88.IR script .
89.TP
90.B \-v
91show version information.
92.TP
93.B \-E
94ignore environment variables.
95.TP
96.B \-\-
97stop handling options.
98.TP
99.B \-
100stop handling options and execute the standard input as a file.
101.SH "SEE ALSO"
102.BR luac (1)
103.br
104The documentation at lua.org,
105especially section 7 of the reference manual.
106.SH DIAGNOSTICS
107Error messages should be self explanatory.
108.SH AUTHORS
109R. Ierusalimschy,
110L. H. de Figueiredo,
111W. Celes
112.\" EOF