1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Documentation Lua

Discussion in 'Support' started by JohnQSmith, Jan 13, 2014.

  1. JohnQSmith

    Joined:
    Jan 19, 2011
    Messages:
    559
    Likes Received:
    7
    Documentation says
    Code:
    LUA [options] [script [args]]
    Command helper text at the bottom of the TC window says
    Code:
    LUA [-e -i -l -v -- - [script [args]]]
    From what I've seen, it behaves as per the command helper text.
    Code:
    0:00:00.001
    [Z:\]
    14:48:49 $ type hello.lua
    print("Hello, world!")
    
    0:00:00.001
    [Z:\]
    14:48:58 $ lua hello.lua
    Lua 5.2.2  Copyright (C) 1994-2013 Lua.org, PUC-Rio
    >
    
    ^C
    0:00:06.427
    [Z:\]
    14:49:13 $ lua - hello.lua
    Hello, world!
    
    0:00:00.001
    [Z:\]
    14:50:12 $ lua -- hello.lua
    Hello, world!
    
    0:00:00.002
    [Z:\]
    14:50:53 $
    Running a downloaded set of Lua binaries follows a normal command format as per the TC Lua documentation.
    Code:
    0:00:00.014
    [Z:\]
    15:03:32 $ which lua52
    lua52 is an external : C:\BIN\lua52.exe
    
    0:00:00.002
    [Z:\]
    15:04:40 $ lua52 hello.lua
    Hello, world!
    
    0:00:00.013
    [Z:\]
    15:04:52 $
     

Share This Page