beetlebug▾
/

info patchlevel

Gives the full version of Tcl that ztcl follows.

info patchlevel

Description

Gives the value of the global variable tcl_patchLevel: 9.1.0, or 8.6.16 with the flag --tcl 8.6. A script that sets that variable changes the result.

Returns

A version, such as 9.1.0.

Examples

# Tcl 9.1 only
% info patchlevel
9.1.0

# Tcl 8.6 only
% info patchlevel
8.6.16

Errors

% info patchlevel x
wrong # args: should be "info patchlevel"
-errorcode TCL WRONGARGS

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztcl 1.0.0-beta.1

See also