Re: Where to find a Tcl command?



mike.hfzhang@xxxxxxxxx wrote:
Hi, I am a newbite of TCL, I am trying to access TCL commands, for
example, I am tring to locate a command "puts" ,but I can not find it
in any Tcl folder,anyone can let me know the clue about it? thanks.

Mike


The standard Tcl command-set is not comprised of separate utility programs like many Unix-style commands might be. Instead, all of the standard commands are contained in a single-executable interpreter which is typically named either tclsh (non-GUI interpreter) or wish (GUI interpreter). Note, the names may contain a trailing version stamp as well, as in tclsh84 or wish84.

Jeff
.



Relevant Pages

  • Re: Writing extensions in C: questions:
    ... The correct way to set the interpreter ... >provide], which says it is invoked when the package is finally loaded, ... It seems to me this would result in additional commands being ... >created commands if anything subsequently fails during init? ...
    (comp.lang.tcl)
  • Re: Dont understand eval
    ... The macro needs to access all the ... I guess you define your own "looping commands" that somehow take ... To hide the real tcl commands, ... unavailable in the interpreter. ...
    (comp.lang.tcl)
  • Re: Design question (specifically, script interpreter)
    ... you might want to look at TCL. ... syntax so its easy to write an interpreter which can recognize the "command" ... Its then quite easy to add new commands ... > mathematical toolkit in the framework of a script interpreter. ...
    (comp.lang.cpp)
  • Re: looking for tcl based Cisco like command line interface
    ... TinyTcl and Jim would be fine to save resources, but first is missing some newer tcl sub-/commands and later has no exec-command at all. ... Only want to install one single tcl/etcl/tclkit interpreter and a single tcl script. ... Funny, the cli can be run from any computer remote,using snmp get/get-next/set for communication to the network device, therefore got a remote console program too. ... extreme environments) based on ARM or Coldfire processor using Debian Linux/ucLinux should be extended with a CLI that is similar in behaviour, handling and naming conventions to the well known cisco command line interface (several user-visible application-specific commands, along with a help, different management operation levels like "enable", "config", line driven only, tab expansion, no special graphics or ascii terminal commands) ...
    (comp.lang.tcl)
  • Re: Is garbage collection here yet?
    ... to control object lifetimes, and provided you write your code in the ... since commands can be looked up using [info ... be created using an interpreter alias. ...
    (comp.lang.tcl)