wiki:TclVersionInfo

Version 7 (modified by neverpanic (Clemens Lang), 10 years ago) (diff)

Add Tcl VersionInfo for Mavericks

Tcl Version Information

This page documents which version of Tcl was shipped in which Mac OS X release.

Finding the Tcl version number

Example:

$ echo 'puts [info patchlevel]' | /usr/bin/tclsh
8.5.9

Versions

Mac OS X/Tcl /usr/bin/tclsh /usr/bin/tclsh8.4 /usr/bin/tclsh8.5
10.9 8.5.9 8.4.19 8.5.9
10.8 8.5.9 8.4.19 8.5.9
10.7 8.5.9 8.4.19 8.5.9
10.6 8.5.7 8.4.19 8.5.7
10.5 8.4.7 8.4.7 none
10.4 8.4.7 8.4.7 none

You can generate the format required by this table using

printf '||= %-12s =||`%-19s` ||`%-19s`  ||`%-19s`  ||\n' \
  $(sw_vers -productVersion | /usr/bin/grep -Eo '[0-9]+\.[0-9]+') \
  $(TCLSH=/usr/bin/tclsh; (test -e $TCLSH && echo 'puts [info patchlevel]' | $TCLSH) || echo "none") \
  $(TCLSH=/usr/bin/tclsh8.4; (test -e $TCLSH && echo 'puts [info patchlevel]' | $TCLSH) || echo "none") \
  $(TCLSH=/usr/bin/tclsh8.5; (test -e $TCLSH && echo 'puts [info patchlevel]' | $TCLSH) || echo "none")