summaryrefslogtreecommitdiff
path: root/doc/lua.1
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2014-12-11 12:00:00 +0000
committerrepogen <>2014-12-11 12:00:00 +0000
commitfd9a52f7ff522a363ff2495d33b331c221981d60 (patch)
treea3fca3cc276f2a2ee44a498984497a9b82e685ee /doc/lua.1
parent92fdb95364ed274752b8634c8ba3dca1f1dc5fb3 (diff)
downloadlua-github-c349e8cdbb92bb249ab85758d5639576219ca1e1.tar.gz
Lua 5.3.0-rc05.3.0-rc0
Diffstat (limited to 'doc/lua.1')
-rw-r--r--doc/lua.113
1 files changed, 4 insertions, 9 deletions
diff --git a/doc/lua.1 b/doc/lua.1
index 1dbf0436..411531b9 100644
--- a/doc/lua.1
+++ b/doc/lua.1
@@ -1,5 +1,4 @@
-.\" $Id: lua.man,v 1.13 2011/11/16 17:16:53 lhf Exp $
-.TH LUA 1 "$Date: 2011/11/16 17:16:53 $"
+.TH LUA 1 "$Date: 2014/12/10 15:55:45 $"
.SH NAME
lua \- Lua interpreter
.SH SYNOPSIS
@@ -50,22 +49,18 @@ In interactive mode,
prompts the user,
reads lines from the standard input,
and executes them as they are read.
+If the line contains an expression or list of expressions,
+then the line is evaluated and the results are 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.
-If a line starts with
-.BR '=' ,
-then
-.B lua
-evaluates and displays
-the values of the expressions in the remainder of the line.
.LP
At the very start,
before even handling the command line,
.B lua
checks the contents of the environment variables
-.B LUA_INIT_5_2
+.B LUA_INIT_5_3
or
.BR LUA_INIT ,
in that order.