Re:Why Lua?
by bch on Tuesday January 31, 2012 @10:18PM
(#3536497)
Ya -- interactive tclsh has a few creature-features. The autocomplete we're discussing, automatic fall-through to exec as if via sh(1), command history, history editing, and perhaps more I'm forgetting.
[ Parent
| on HN ]
Re:Why Lua?
by groovy2shoes on Tuesday January 31, 2012 @10:25PM
(#3536513)
> automatic fall-through to exec as if via sh(1)
That explains why X11.app launched that one time I forgot a `$` before my `x`...
That sounds likely. Note that is strictly for interactively typed commands. Witness:
kamloops$ cat ls.tcl
#!/usr/pkg/bin/tclsh8.6
ls foo
kamloops$ ./ls.tcl
invalid command name "ls"
while executing
"ls foo"
(file "./ls.tcl" line 3)
kamloops$ tclsh8.6
% source ls.tcl
invalid command name "ls"
% ls foo
foo
%
Now, back to your regularly scheduled Lua topic :)