Deutsch English Français Italiano |
<v5k7tl$2r9ec$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Harald Oehlmann <wortkarg3@yahoo.com> Newsgroups: comp.lang.tcl Subject: Re: is it possible to programmatically access Tcllib and Tklib versions? Date: Thu, 27 Jun 2024 19:35:49 +0200 Organization: A noiseless patient Spider Lines: 33 Message-ID: <v5k7tl$2r9ec$1@dont-email.me> References: <eYecndZfv-BNWOb7nZ2dnZfqnPUAAAAA@brightview.co.uk> <v5hfpu$279i8$2@dont-email.me> <utudneS1LKYaZ-H7nZ2dnZfqnPUAAAAA@brightview.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 27 Jun 2024 19:35:50 +0200 (CEST) Injection-Info: dont-email.me; posting-host="654b9e4cd98c28ed3b1d56415691e53d"; logging-data="2991564"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18yRHQAnQJ0Pd8E7bhg+Dnk" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:sslRbsPOI8NSbSYzgkID/NVdbmM= Content-Language: en-GB In-Reply-To: <utudneS1LKYaZ-H7nZ2dnZfqnPUAAAAA@brightview.co.uk> Bytes: 2395 Am 27.06.2024 um 07:37 schrieb Mark Summerfield: > On Wed, 26 Jun 2024 16:31:58 -0000 (UTC), Rich wrote: > >> Mark Summerfield <mark@qtrac.eu> wrote: >>> For a --help option or for an About box I like to show lib versions. >>> This is easy for Tcl and for Tk, e.g. >>> >>> "Tcl v$::tcl_patchLevel/Tk v$::tk_version" >>> >>> But I can't see how to get the versions of Tcllib and Tklib. Is this >>> possible? >> >> I don't think so, as each module within tcllib is separately versioned. >> >> You can show the versions by either capturing the return from package >> require, or by rerunning package require at the time you want the data: >> >> $ rlwrap tclsh % package require cmdline 1.5.2 % set cmdline_ver >> [package require cmdline] >> 1.5.2 % puts "cmdline version is $cmdline_ver" cmdline version is >> 1.5.2 % > > Ok, understood. Thanks. No, there is something. I asked this question and Andreas added something. https://core.tcl-lang.org/tcllib/info/13fc0520a654f9e9 No, it is not included. But we recently have code to also include the fossil checkout id. Here is the code by Alex: https://fossil.sowaswie.de/ooxml/info/424958a4c5506180 I will add this to the tcllib ticket... Harald