How do I ask Tcl about its version?

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

What command can I run in Tcl to make it peek in and report the running version?

+2


source to share


3 answers


info patchlevel

      

which is the tcl_patchlevel value



see tcl tutorial

+7


source


You only need



puts $tcl_patchLevel

      

+1


source


in addition to other parameters, you can use:

puts $tcl_version

      

This has the advantage that you are running comically old versions of tcl.

+1


source







All Articles