Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Fixed @Lua does not behave as documented

Seen here as well. But wait! There's more!

c:\takecommand20> echo %@perl[print "foo"]
Error (SYS): Invalid class string
-1
 
@mikea Check to make sure you have PerlScript installed as per the documentation. I don't have it installed and got the same error.
 
Ah, so this relies on PerlScript, eh? I have never installed it. I'd always thought this kind of problem with Perl pertained to some weirdness with ActiveState's Perl (which is the only version I've used).
 
Now I get this
Code:
[C:\BIN\JPSoft\TCMD20] 11:04:16 $ echo %@lua[print 'foo']
foo
ECHO is OFF

[C:\BIN\JPSoft\TCMD20] 11:04:27 $ %@lua[print 'foo']
foo
 
Echoing the result of @LUA is kind of pointless, as it will always return 0 unless there's an internal Lua error, in which case you'll get an error message and the ECHO will never be executed.
That doesn't agree with what JQS observed. Why wasn't "0" echoed in his first example? And I would have expected
Code:
TCC: Unknown command "0"
from his second example.
 

Similar threads

Replies
0
Views
2K
Back
Top