My TCL notes file:
{} => ""
[] => ``
set x y => x = y
[expr {…}] => "act like a programming language"
[eval {…}] => {act like ""}
$ and [] work within "" but not {}
eq ne in ni
einter => coerce
proc parameter named "args" is variadic if last
first $ in $$a does nothing
format => sprintf
lsearch and regexp are different
for {} {} {} => for(;;)
[subst $$a] => dereference $a
[string is …] => typecheck
strings are not strings
Before running:
sudo apt install rlwrap
alias tclrl='rlwrap tclsh'