Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I query Tcl about its version?

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?

like image 455
WilliamKF Avatar asked Nov 03 '25 19:11

WilliamKF


2 Answers

info patchlevel

which is the value of tcl_patchlevel

see tcl tutorial

like image 101
mmmmmm Avatar answered Nov 05 '25 15:11

mmmmmm


in addition to other options, you can use:

puts $tcl_version

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

like image 29
SingleNegationElimination Avatar answered Nov 05 '25 15:11

SingleNegationElimination



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!