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 :)
That explains why X11.app launched that one time I forgot a `$` before my `x`...