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?

WilliamKF
  • 41,123
  • 68
  • 193
  • 295

3 Answers3

8
info patchlevel

which is the value of tcl_patchlevel

see tcl tutorial

mmmmmm
  • 32,227
  • 27
  • 88
  • 117
2

in addition to other options, you can use:

puts $tcl_version

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

SingleNegationElimination
  • 151,563
  • 33
  • 264
  • 304
1

You only need to

puts $tcl_patchLevel
Carlos Tasada
  • 4,438
  • 1
  • 23
  • 26