views:

90

answers:

3

There must be an easy way to do this, but I can't find it.

What command can I run within Tcl to get it to introspect and report the version of itself that is running?

A: 

You only need to

puts $tcl_patchLevel
Carlos Tasada
+5  A: 
info patchlevel

which is the value of tcl_patchlevel

see tcl tutorial

Mark
A: 

in addition to other options, you can use:

puts $tcl_version

This has the advantage of working for comically old versions of tcl.

TokenMacGuy
This only gives you the major version (8.5) but not the full version (8.5.7)
Carlos Tasada