2 ms·
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
by bch 15y ago
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.
kamloops$ tclsh8.6
% info commands up*
update uplevel upvar
% uptime
7:17PM up 1 hr, 7 users, load averages: 0.06, 0.12, 0.17
% ls fu
ls: fu: No such file or directory
child process exited abnormally
% ls -ld fu
ls: fu: No such file or directory
child process exited abnormally
% ^fu^foo
ls -ld foo
-rwxr-xr-x 1 joe users 7300 Mar 23 2011 foo
% history
1 info commands up*
2 uptime
3 ls fu
4 ls -ld fu
5 ls -ld foo
6 history
% !2
uptime
7:20PM up 1:03, 7 users, load averages: 0.13, 0.12, 0.16
- groovy2shoes 15y ago> 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`...
- bch 15y agoThat 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 :)