Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: Xianwen Chen on June 18, 2010, 02:16:10 PM

Title: Is there a way to get the TCL version number?
Post by: Xianwen Chen on June 18, 2010, 02:16:10 PM
Hi all,

Is there a way of finding out TCL version number from either a file or a script?
Title: Re: Is there a way to get the TCL version number?
Post by: erocynit on June 18, 2010, 02:25:08 PM
http://tmml.sourceforge.net/doc/tcl/tclvars.html

tcl_patchLevel
    When an interpreter is created Tcl initializes this variable to hold a string giving the current patch level for Tcl, such as 8.4.16 for Tcl 8.4 with the first sixteen official patches, or 8.5b3 for the third beta release of Tcl 8.5. The value of this variable is returned by the info patchlevel command.

> tclsh

%  puts $tcl_patchLevel
8.3.4
Title: Re: Is there a way to get the TCL version number?
Post by: curaga on June 18, 2010, 02:32:14 PM
The "version" command. Look inside to see which file it opens.
Title: Re: Is there a way to get the TCL version number?
Post by: Xianwen Chen on June 18, 2010, 03:31:50 PM
http://tmml.sourceforge.net/doc/tcl/tclvars.html

tcl_patchLevel
    When an interpreter is created Tcl initializes this variable to hold a string giving the current patch level for Tcl, such as 8.4.16 for Tcl 8.4 with the first sixteen official patches, or 8.5b3 for the third beta release of Tcl 8.5. The value of this variable is returned by the info patchlevel command.

> tclsh

%  puts $tcl_patchLevel
8.3.4


Hi erocynit,

Thanks a lot for your reply! I'm sorry that I didn't clarify my question. It was abou Tiny Core Linux.

Title: Re: Is there a way to get the TCL version number?
Post by: Xianwen Chen on June 18, 2010, 03:32:12 PM
The "version" command. Look inside to see which file it opens.

Hi curaga,

Thanks a lot! Problem solved!