-
-info option ?arg arg …?
+info option ?arg...?
-
Provide information about various internals to the Tcl interpreter.
-The legal option's (which may be abbreviated) are:
+The legal option's (which may be abbreviated) are:
-
@@ -3938,16 +4449,25 @@ The legal option's (which may be abbreviated) are:
-
Returns a list containing the names of the arguments to procedure
- procname, in order. Procname must be the name of a
+ procname, in order. procname must be the name of a
Tcl command procedure.
-
+info alias command
+
+-
+
+ command must be an alias created with alias. In which case the target
+ command and arguments, as passed to alias are returned. See exists -alias
+
+
+-
info body procname
-
- Returns the body of procedure procname. Procname must be
+ Returns the body of procedure procname. procname must be
the name of a Tcl command procedure.
@@ -3956,15 +4476,7 @@ The legal option's (which may be abbreviated) are:
-
- Returns a list of all open aio channels.
-
-
--
-info channels
-
--
-
- Returns a list of all open file handles from open or socket
+ Returns a list of all open file handles from open or socket
-
@@ -3972,26 +4484,27 @@ The legal option's (which may be abbreviated) are:
-
- If pattern isn’t specified, returns a list of names of all the
+ If pattern isn’t specified, returns a list of names of all the
Tcl commands, including both the built-in commands written in C and
- the command procedures defined using the proc command.
- If pattern is specified, only those names matching pattern
+ the command procedures defined using the proc command.
+ If pattern is specified, only those names matching pattern
are returned. Matching is determined using the same rules as for
- string match.
+ string match.
-
-info complete command
+info complete command ?missing?
-
- Returns 1 if command is a complete Tcl command in the sense of
+ Returns 1 if command is a complete Tcl command in the sense of
having no unclosed quotes, braces, brackets or array element names,
If the command doesn’t appear to be complete then 0 is returned.
This command is typically used in line-oriented input environments
to allow users to type in commands that span multiple lines; if the
command isn’t complete, the script can delay evaluating it until additional
- lines have been typed to complete the command.
+ lines have been typed to complete the command. If varName is specified, the
+ missing character is stored in the variable with that name.
-
@@ -3999,7 +4512,7 @@ The legal option's (which may be abbreviated) are:
-
- Returns 1 if the variable named varName exists in the
+ Returns 1 if the variable named varName exists in the
current context (either as a global or local variable), returns 0
otherwise.
@@ -4009,15 +4522,15 @@ The legal option's (which may be abbreviated) are:
-
- If number is not specified, this command returns a number
- which is the same result as info level - the current stack frame level.
- If number is specified, then the result is a list consisting of the procedure,
- filename and line number for the procedure call at level number on the stack.
- If number is positive then it selects a particular stack level (1 refers
+ If number is not specified, this command returns a number
+ which is the same result as info level - the current stack frame level.
+ If number is specified, then the result is a list consisting of the procedure,
+ filename and line number for the procedure call at level number on the stack.
+ If number is positive then it selects a particular stack level (1 refers
to the top-most active procedure, 2 to the procedure it called, and
so on); otherwise it gives a level relative to the current level
(0 refers to the current procedure, -1 to its caller, and so on).
- The level has an identical meaning to info level.
+ The level has an identical meaning to info level.
-
@@ -4025,11 +4538,11 @@ The legal option's (which may be abbreviated) are:
-
- If pattern isn’t specified, returns a list of all the names
+ If pattern isn’t specified, returns a list of all the names
of currently-defined global variables.
- If pattern is specified, only those names matching pattern
+ If pattern is specified, only those names matching pattern
are returned. Matching is determined using the same rules as for
- string match.
+ string match.
-
@@ -4037,7 +4550,7 @@ The legal option's (which may be abbreviated) are:
-
- An alias for os.gethostname for compatibility with Tcl 6.x
+ An alias for os.gethostname for compatibility with Tcl 6.x
-
@@ -4045,16 +4558,16 @@ The legal option's (which may be abbreviated) are:
-
- If number is not specified, this command returns a number
+ If number is not specified, this command returns a number
giving the stack level of the invoking procedure, or 0 if the
- command is invoked at top-level. If number is specified,
+ command is invoked at top-level. If number is specified,
then the result is a list consisting of the name and arguments for the
- procedure call at level number on the stack. If number
+ procedure call at level number on the stack. If number
is positive then it selects a particular stack level (1 refers
to the top-most active procedure, 2 to the procedure it called, and
so on); otherwise it gives a level relative to the current level
(0 refers to the current procedure, -1 to its caller, and so on).
- See the uplevel command for more information on what stack
+ See the uplevel command for more information on what stack
levels mean.
@@ -4063,12 +4576,12 @@ The legal option's (which may be abbreviated) are:
-
- If pattern isn’t specified, returns a list of all the names
+ If pattern isn’t specified, returns a list of all the names
of currently-defined local variables, including arguments to the
- current procedure, if any. Variables defined with the global
- and upvar commands will not be returned. If pattern is
- specified, only those names matching pattern are returned.
- Matching is determined using the same rules as for string match.
+ current procedure, if any. Variables defined with the global
+ and upvar commands will not be returned. If pattern is
+ specified, only those names matching pattern are returned.
+ Matching is determined using the same rules as for string match.
-
@@ -4077,10 +4590,8 @@ The legal option's (which may be abbreviated) are:
-
Returns the name of the binary file from which the application
- was invoked, either
- as a path relative to the current directory or as a full
- path. If the path can’t be determined, returns the empty
- string.
+ was invoked. A full path will be returned, unless the path
+ can’t be determined, in which case the empty string will be returned.
-
@@ -4088,11 +4599,11 @@ The legal option's (which may be abbreviated) are:
-
- If pattern isn’t specified, returns a list of all the
+ If pattern isn’t specified, returns a list of all the
names of Tcl command procedures.
- If pattern is specified, only those names matching pattern
+ If pattern is specified, only those names matching pattern
are returned. Matching is determined using the same rules as for
- string match.
+ string match.
-
@@ -4110,7 +4621,7 @@ The legal option's (which may be abbreviated) are:
-
Returns a list representing the mapping of standard return codes
- to names. e.g. {0 ok 1 error 2 return …}. If a code is given,
+ to names. e.g. {0 ok 1 error 2 return ...}. If a code is given,
instead returns the name for the given code.
@@ -4121,7 +4632,7 @@ The legal option's (which may be abbreviated) are:
If a Tcl script file is currently being evaluated (i.e. there is a
call to Jim_EvalFile active or there is an active invocation
- of the source command), then this command returns the name
+ of the source command), then this command returns the name
of the innermost file being processed. Otherwise the command returns an
empty string.
@@ -4141,8 +4652,19 @@ The legal option's (which may be abbreviated) are:
-
- After an error is caught with catch, returns the stack trace as a list
- of {procedure filename line …}.
+ After an error is caught with catch, returns the stack trace as a list
+ of {procedure filename line ...}.
+
+
+-
+info statics procname
+
+-
+
+ Returns a dictionary of the static variables of procedure
+ procname. procname must be the name of a Tcl command
+ procedure. An empty dictionary is returned if the procedure has
+ no static variables.
-
@@ -4150,7 +4672,7 @@ The legal option's (which may be abbreviated) are:
-
- Returns the version number for this version of Jim in the form x.yy.
+ Returns the version number for this version of Jim in the form x.yy.
-
@@ -4158,12 +4680,12 @@ The legal option's (which may be abbreviated) are:
-
- If pattern isn’t specified,
+ If pattern isn’t specified,
returns a list of all the names of currently-visible variables, including
both locals and currently-visible globals.
- If pattern is specified, only those names matching pattern
+ If pattern is specified, only those names matching pattern
are returned. Matching is determined using the same rules as for
- string match.
+ string match.