mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
* [TD-4132]<test>: add taosdump-testcase of boundary value testing
* [TD-3952]<test>: add taodemo-testcase that query with restful connector
* merge master
* modify taosdemo-testcase
* add testcase of async subscirbe and max sql num
* testcase-subscribe of super table
* testcase-modify sub
* modify subscribe testcase
* [TD-4238]<test>: add taodemo-testcase that records of number in request sql less than 32767
* add taosdemo-subscribe-testcase
* update taosdemo testcase
* temp commit
* temp commit
* temp commit
* temp1
* temp
* [TD-4835] add lua lib
* [TD-4369]<test>: add testcase of resubscibe
* [TD-4826]<fix>: new error code 0x0406 (Dnode is exiting) for tsc
* [TD-4369]<test>: add testcase of resubscibe and json file
* temp
* update master to develop's version
* Update boundary2.py
* [TD-4912]<hotfix>: fix coredump when drop vnode
* Hotfix/sangshuduo/td 3801 taosdump coverity scan issue (#6642)
* [TD-3801]<fix>: taosdump coverity scan issue.
* merge from commit: 069169e7c1 and fix coverity scan issue.
Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
* [TD-4932]fix jenkins errors on master branch (#6645)
* [TD-4932]fix jenkins errors on master branch
* fix
* fix
* fix
* fix
* [TD-4132]<test>:modify taosdump-testcase of column length
* [TD-4918]<fix>: taosdemo subscribe endAfterResume. (#6653)
* [TD-4915]<fix> fix show-create-database except
* Hotfix/sangshuduo/td 4892 taosdemo sub fetch (#6669)
* [TD-4892]<fix>: taosdemo subscribe fetch result.
* fix stbname length.
* restrict prefix length.
* submit empty
* fix minor code.
* fix crash if no result file.
* decrease few debug print level.
* fix offset issue
* [TD-4987]<fix>: issues memory sanitizier detected. (#6675)
* [TD-4826]<fix>: no extra sleep if no message in vwqueue
* [TD-4593]<fix>: fix vnode cannnot close while syncing
* Hotfix/sangshuduo/td 4918 taosdemo sub afterconsume (#6685)
* [TD-4918]<fix>: taosdemo subscribe endAfterResume.
* fix mask length.
* fix heap use-after-free.
* Hotfix/sangshuduo/td 4987 detected by mem sanitizer (#6684)
* [TD-4987]<fix>: issues memory sanitizier detected.
* fix mask width issue.
* [TD-4828]<fix> handle dnode exit code
* Hotfix/sangshuduo/td 3973 use jemalloc for master (#6702)
* [TD-3973]<feature>: add jemalloc as submodule.
* [TD-3973]<feature>: add jemalloc as submodule.
* [TD-3973]<feature>: use jemalloc.
build works as following instructions:
cmake .. -DJEMALLOC_ENABLED=true
make
* fix jemalloc at tag 5.2.1
* fix conflicts
* make install works.
* fix conflicts.
* release script works.
* fix typo
Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
* TD-4835
* only compile in lua
* [td-4748]<fix>:fix the temp file generate buf on windows platform.
* change cmake options
* [TD-5007]<fix>: use build directory's taosdump to test. (#6710)
btw, solve two taosdemo test cases too.
* Hotfix/sangshuduo/td 4838 taosdump binary len bug (#6713)
* [TD-4838]<fix>: taosdump binary length bug.
* taosdump code refactoring.
* fix arm32 compile issue.
Co-authored-by: tomchon <haoran920c@163.com>
Co-authored-by: Shengliang Guan <slguan@taosdata.com>
Co-authored-by: Minglei Jin <mljin@taosdata.com>
Co-authored-by: Baosheng Chang <changb9@mcmaster.ca>
Co-authored-by: Hongze Cheng <hzcheng@taosdata.com>
Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
Co-authored-by: Yiqing Liu <yqliu@taosdata.com>
Co-authored-by: Hui Li <52318143+plum-lihui@users.noreply.github.com>
Co-authored-by: yihaoDeng <yhdeng@taosdata.com>
Co-authored-by: wpan <wpan@taosdata.com>
Co-authored-by: Haojun Liao <hjxilinx@users.noreply.github.com>
Co-authored-by: Haojun Liao <hjliao@taosdata.com>
163 lines
3.5 KiB
Groff
163 lines
3.5 KiB
Groff
.\" $Id: lua.man,v 1.11 2006/01/06 16:03:34 lhf Exp $
|
|
.TH LUA 1 "$Date: 2006/01/06 16:03:34 $"
|
|
.SH NAME
|
|
lua \- Lua interpreter
|
|
.SH SYNOPSIS
|
|
.B lua
|
|
[
|
|
.I options
|
|
]
|
|
[
|
|
.I script
|
|
[
|
|
.I args
|
|
]
|
|
]
|
|
.SH DESCRIPTION
|
|
.B lua
|
|
is the stand-alone Lua interpreter.
|
|
It loads and executes Lua programs,
|
|
either in textual source form or
|
|
in precompiled binary form.
|
|
(Precompiled binaries are output by
|
|
.BR luac ,
|
|
the Lua compiler.)
|
|
.B lua
|
|
can be used as a batch interpreter and also interactively.
|
|
.LP
|
|
The given
|
|
.I options
|
|
(see below)
|
|
are executed and then
|
|
the Lua program in file
|
|
.I script
|
|
is loaded and executed.
|
|
The given
|
|
.I args
|
|
are available to
|
|
.I script
|
|
as strings in a global table named
|
|
.BR arg .
|
|
If these arguments contain spaces or other characters special to the shell,
|
|
then they should be quoted
|
|
(but note that the quotes will be removed by the shell).
|
|
The arguments in
|
|
.B arg
|
|
start at 0,
|
|
which contains the string
|
|
.RI ' script '.
|
|
The index of the last argument is stored in
|
|
.BR arg.n .
|
|
The arguments given in the command line before
|
|
.IR script ,
|
|
including the name of the interpreter,
|
|
are available in negative indices in
|
|
.BR arg .
|
|
.LP
|
|
At the very start,
|
|
before even handling the command line,
|
|
.B lua
|
|
executes the contents of the environment variable
|
|
.BR LUA_INIT ,
|
|
if it is defined.
|
|
If the value of
|
|
.B LUA_INIT
|
|
is of the form
|
|
.RI '@ filename ',
|
|
then
|
|
.I filename
|
|
is executed.
|
|
Otherwise, the string is assumed to be a Lua statement and is executed.
|
|
.LP
|
|
Options start with
|
|
.B '\-'
|
|
and are described below.
|
|
You can use
|
|
.B "'\--'"
|
|
to signal the end of options.
|
|
.LP
|
|
If no arguments are given,
|
|
then
|
|
.B "\-v \-i"
|
|
is assumed when the standard input is a terminal;
|
|
otherwise,
|
|
.B "\-"
|
|
is assumed.
|
|
.LP
|
|
In interactive mode,
|
|
.B lua
|
|
prompts the user,
|
|
reads lines from the standard input,
|
|
and executes them as they are read.
|
|
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.
|
|
So, one way to interrupt the reading of an incomplete statement is
|
|
to force a syntax error:
|
|
adding a
|
|
.B ';'
|
|
in the middle of a statement is a sure way of forcing a syntax error
|
|
(except inside multiline strings and comments; these must be closed explicitly).
|
|
If a line starts with
|
|
.BR '=' ,
|
|
then
|
|
.B lua
|
|
displays the values of all the expressions in the remainder of the
|
|
line. The expressions must be separated by commas.
|
|
The primary prompt is the value of the global variable
|
|
.BR _PROMPT ,
|
|
if this value is a string;
|
|
otherwise, the default prompt is used.
|
|
Similarly, the secondary prompt is the value of the global variable
|
|
.BR _PROMPT2 .
|
|
So,
|
|
to change the prompts,
|
|
set the corresponding variable to a string of your choice.
|
|
You can do that after calling the interpreter
|
|
or on the command line
|
|
(but in this case you have to be careful with quotes
|
|
if the prompt string contains a space; otherwise you may confuse the shell.)
|
|
The default prompts are "> " and ">> ".
|
|
.SH OPTIONS
|
|
.TP
|
|
.B \-
|
|
load and execute the standard input as a file,
|
|
that is,
|
|
not interactively,
|
|
even when the standard input is a terminal.
|
|
.TP
|
|
.BI \-e " stat"
|
|
execute statement
|
|
.IR stat .
|
|
You need to quote
|
|
.I stat
|
|
if it contains spaces, quotes,
|
|
or other characters special to the shell.
|
|
.TP
|
|
.B \-i
|
|
enter interactive mode after
|
|
.I script
|
|
is executed.
|
|
.TP
|
|
.BI \-l " name"
|
|
call
|
|
.BI require(' name ')
|
|
before executing
|
|
.IR script .
|
|
Typically used to load libraries.
|
|
.TP
|
|
.B \-v
|
|
show version information.
|
|
.SH "SEE ALSO"
|
|
.BR luac (1)
|
|
.br
|
|
http://www.lua.org/
|
|
.SH DIAGNOSTICS
|
|
Error messages should be self explanatory.
|
|
.SH AUTHORS
|
|
R. Ierusalimschy,
|
|
L. H. de Figueiredo,
|
|
and
|
|
W. Celes
|
|
.\" EOF
|