info

info subcommand ?arg ...?

Facts about the interpreter: its commands, procs, variables, and the call stack.

Subcommands

Synopsis What it does
info commands ?PATTERN? The names of the commands.
info procs ?PATTERN? The names of the procs.
info exists VAR 1 when the variable has a value.
info vars ?PATTERN? The visible variables.
info globals ?PATTERN? The variables of the top level.
info locals ?PATTERN? The local variables of the proc.
info args PROC The argument names of a proc.
info body PROC The body of a proc.
info default PROC ARG VAR 1 when the argument has a default, which goes in VAR.
info level ?N? The depth of the call stack, or the command at level N.
info complete SCRIPT 1 when the script has no open brace, bracket, or quote.
info script ?NAME? The file of the script that source runs.
info functions ?PATTERN? The names of the math functions.
info cmdcount The count of commands that ran.
info patchlevel The version of Tcl that ztcl follows: 9.1.0, or 8.6.16 with --tcl 8.6.
info tclversion 9.1, or 8.6 with --tcl 8.6.
info library The folder of the Tcl library: empty in ztcl.
info loaded The loaded binary packages.
info nameofexecutable The path of the program.
info sharedlibextension The extension of a shared library.
info hostname The name of the host.
info errorstack ?INTERP? The -errorstack of the last error: INNER and the failed command, then CALL and the words of each proc that the error left, and UP and a count of levels for a catch in the frame of uplevel.
info coroutine The full name of the running coroutine, or an empty string.
info class SUBCOMMAND CLASS ?arg ...? Facts about a TclOO class, as info class of Tcl 8.6.
info object SUBCOMMAND OBJECT ?arg ...? Facts about a TclOO object, as info object of Tcl 8.6.

Examples

A click on an example runs it in the shell of the page.

Facts

Differences from Tcl 8.6