From 85cd58543426f35999a47eb92fabe7d01b935a9c Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Fri, 23 Aug 2024 19:41:01 +0000 Subject: [PATCH] Update "info loaded" documentation. Add "info loaded" change to release notes --- changes.md | 5 +++-- doc/load.n | 10 ++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/changes.md b/changes.md index 2adbd1ed227..703e679c4ee 100644 --- a/changes.md +++ b/changes.md @@ -45,9 +45,10 @@ writing Tcl scripts. - `readFile`, `writeFile`, `foreachLine` ## New command options - - `regsub ... -command ...` - - `lsearch ... -stride ...` - `clock scan ... -validate ...` + - `info loaded ... ?prefix?` + - `lsearch ... -stride ...` + - `regsub ... -command ...` - `socket ... -nodelay ... -keepalive ...` - `vwait` controlled by several new options diff --git a/doc/load.n b/doc/load.n index 40565a1b134..176f5a3aa7a 100644 --- a/doc/load.n +++ b/doc/load.n @@ -84,13 +84,11 @@ If \fIfileName\fR is an empty string, then \fIprefix\fR must be specified. .PP If \fIprefix\fR is omitted or specified as an empty string, -Tcl tries to guess the prefix. This may be done differently on -different platforms. The default guess, which is used on most -UNIX platforms, is to take the last element of +Tcl tries to guess the prefix by taking the last element of \fIfileName\fR, strip off the first three characters if they -are \fBlib\fR, then strip off the next three characters if they -are \fBtcl\fR, and use any following alphabetic and -underline characters, converted to titlecase as the prefix. +are \fBlib\fR, then strip off the next three or four characters if +they are \fBtcl\fR or \fBtcl8\fR, and use any following wordchars +but not digits, converted to titlecase as the prefix. For example, the command \fBload libxyz4.2.so\fR uses the prefix \fBXyz\fR and the command \fBload bin/last.so {}\fR uses the prefix \fBLast\fR.