Tcl Source Code

Check-in [a64804ce70]
Login

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

Overview
Comment:Fix cases #2 and #4 of [697b1bbfe3]: the bytecode compiler for [regexp] checked for a leading "-" only in simple words, so patterns like \- or -\\ were compiled instead of being reported as bad options. Check the value of any word known at compile time, as for [regsub]. Incompatible for compiled code relying on it; for the next feature release. New tests regexpComp-24.12 to 24.15.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | regexp-compile-dash-pattern
Files: files | file ages | folders
SHA3-256: a64804ce70db53c5d9432a2ce627bcec4490718e9a100218808010310833221d
User & Date: serhiy.storchaka 2026-10-10 21:10:10.283
Context
2026-10-14
09:26
Fix [697b1bbfe3] and [1902890fff]: Incorrect argument handling by [regexp] check-in: 6e93204003 user: jan.nijtmans tags: trunk, main
2026-10-10
21:10
Fix cases #2 and #4 of [697b1bbfe3]: the bytecode compiler for [regexp] checked for a leading "-" on... closed check-in: a64804ce70 user: serhiy.storchaka tags: regexp-compile-dash-pattern
2026-10-08
09:29
merge: gahr-dual-stack-tests check-in: e55edf971f user: gahr tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to generic/tclCompCmdsGR.c.
Changes to tests/regexpComp.test.