Tcl Source Code

Check-in [7ca44862f9]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix [219233ffff] and [3556218fff]: in glob patterns ([string match], [glob], [lsearch -glob], [switch -glob]), a "-" right before the closing bracket of a set now is a literal, and a closing bracket right after the opening one is a member of the set, as in POSIX. Before, such a "-" started a range up to the closing bracket, and a set starting with a closing bracket never matched. Only for 9.1: patterns that relied on a range ending in the closing bracket change meaning.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | glob-bracket-posix
Files: files | file ages | folders
SHA3-256: 7ca44862f9c58c551ece15bd2a4dd6bf9c4fc4e3761546b4f89e3a42b98ed752
User & Date: serhiy.storchaka 2026-10-19 17:38:04.619
Context
2026-10-19
17:38
Fix [219233ffff] and [3556218fff]: in glob patterns ([string match], [glob], [lsearch -glob], [switc... leaf check-in: 7ca44862f9 user: serhiy.storchaka tags: glob-bracket-posix
17:24
Fix [a4a7f2abd3]: [string match], [glob] and [lsearch -glob] took exponential time for patterns like... closed check-in: 2e0da1e14e user: serhiy.storchaka tags: glob-match-linear
Changes
Unified Diff Side-by-Side Diff Patch
Changes to doc/string.n.
Changes to generic/tclUtf.c.
Changes to generic/tclUtil.c.
Changes to tests/string.test.
Changes to tests/util.test.