lua Causes Take Command Tab to Exit

Jun 6, 2009
26
0
I'm running the latest version of Take Command (v18.00.24 x64) on a completely patched and up-to-date Windows 8.1 machine. From a TCC tabbed window, the following command causes the tab window to close.

c:\> lua -v

The tabbed window behaves as if I typed the [exit] command. The simple command [lua] does the same thing.

The behavior is somewhat different from a detached tab. In this case, the TCC console freezes with

C:\...\TCMD18_x64>lua -v
Lua 5.3.0 Copyright (C) 1994-2015 Lua.org, PUC-Rio

I do not have Lua 5.3 installed on my machine so this must be the (internal) version that ships with Tak Command.

Any ideas?

thanks
rick
 
Jun 11, 2008
29
0
Australia
Hi Rex

I would add to this running naked TCC (V18) on Win7 (32bit), i was playing with this, this morning and found Lua /? displays help listing, Lua -v displays the version string (flashed on screen) then causes TCC to close immediately. I didn't note the subversion. I then checked for updates and installed V18.00.24. Retested and got same result.

Before checking here, I repeated above on TCC (V17) and got expected result for Lua V5.2.3.

John
 
Jun 6, 2009
26
0
Downloaded Take Command v18.00.25. TCC no longer closes when checking the version info but other than display the info (or a help screen), the internal lua engine can't seem to do anything. For example,

C:\...\lua>lua -e'a=1' -e 'print(a)' script.lua
Lua: unrecognized option '-e'a=1''
usage: Lua [options] [filenames]
Available options are:
-l list (use -l -l for full listing)
-o name output to file 'name' (default is "luac.out")
-p parse only
-s strip debug information
-v show version information
-- stop handling options
- stop handling options and process stdin

The command line above is taken directly from the TCC help (script.lua includes the single line: print 'Hello World').

Any ideas?

thanks
ricky
 
May 20, 2008
11,538
103
Syracuse, NY, USA
I know very little about LUA, but I dug a few commands out of an old history log and they don't seem to work with v18. Here's v16.
Code:
v:\> lua -e os.execute("echo hello")
hello
And here's v18.
Code:
g:\tc18> lua -e os.execute("echo hello")
Lua: unrecognized option '-e'
usage: Lua [options] [filenames]
Available options are:
  -l  list (use -l -l for full listing)
  -o name  output to file 'name' (default is "luac.out")
  -p  parse only
  -s  strip debug information
  -v  show version information
  --  stop handling options
  -  stop handling options and process stdin
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
That syntax is for Lua 5.2, not 5.3.

Partly because of the syntax changes (which are at best ill-considered and ill-understood), but mostly because the Lua developers screwed up the embedded Lua in 5.3, I've decided to drop back to 5.2 for now. When they fix the 5.3 problems I'll reassess its inclusion in TCC.
 
Similar threads
Thread starter Title Forum Replies Date
T Take Command 28: Lua reports version 5.4.0 (5.4.3 expected) [SOLVED] Support 1
fpefpe Documentation LUA and friends Support 4
T Returning a value from internal Lua scripts to TCC Support 2
H Lua and lpeg Support 1
D Lua does not work on the commandline Support 5
D Fixed @Lua does not behave as documented Support 8
fpefpe How to? LUA script Support 0
fpefpe How to? Lua Examples Support 1
jbarnes1967 TC 18.00 x64 issue with lua io.popen() Support 2
M How to make Lua modify env-vars Support 18
Joe Caverly Internal Lua and require Support 0
jbanaszczyk LUA, tcmd.chm, TCC/LE problem Support 0
Jay Sage Executable Extension with Lua Support 5
tmaynard Invalid item name "Lua" Support 6
vefatica Help LUA Support 1
T Lua sharing data with batch files Support 2
JohnQSmith Documentation Lua Support 0
p.f.moore Lua for Take Command, release 1.0 Support 0
T Plugins for Lua and Idle Support 4
vefatica TIMER causes confusion Support 2
M WAD Set statements in () causes problems Support 8
M Fixed Set "VAR=VAL" format causes problems Support 12
cgunhouse Fixed bdebugger with not exist batch file causes a crash Support 2
vefatica Fixed FOLDERMONITOR causes crash Support 23
D Fixed Removing the mail password causes GPF Support 2
T How to? Using FOLDERMONITOR 1 event causes multiple trigger(ing)s Support 8
D on errorlevel causes btm to mess up TCC Support 7
B DIR /Z Causes GPF in TCMD V10 B50 Support 5
S PDIR command causes GPF Support 5
williamleara Specifying path to TCMD.INI causes issues Support 8
I shralias causes svchost.exe to use 100% cpu Support 10
B DIR /Z Causes Application Error In At Least One Directory Support 4
A Bug report: unsetarray causes GPF Support 0
A Bug report: unsetarray causes GPF Support 2
Z CMDDebug - TCC unknown command Support 2
F Edit command Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 28.02.17 Support 0
old coot LEAVE appears to affect command-line arguments Support 11
J VDESKTOP command Support 3
old coot tee command cancels colors Support 33
Dmitry L. Kobyakov How to? How to remove the record of the old version of the Take Command? Support 9
D Can alias pass parameters to for command? Support 3
samintz How to? Search for %(command) in Help? Support 1
T VIEW only works from command line Support 14
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
J Take command does not start on Windows 10 Support 3
vefatica `Back quotes` - command line vs. batch file Support 5
Jay Sage WAD Failure of Alias Command with /Z Option Support 14

Similar threads