Tcl Source Code

Check-in [0b36adaf16]
Login

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

Overview
Comment:Fix [1902890]: compiled [regexp] did not treat an RE value starting with "-" as a switch, unlike the command. When the RE is not known at compile time and there is no --, check it at runtime and call [regexp] itself if it starts with "-". Also fixes [7e4d5a0a2b] and case #6 of [697b1bbfe3]. New tests regexpComp-25.1 to 25.7.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | regexp-compile-runtime-switch
Files: files | file ages | folders
SHA3-256: 0b36adaf1668c6bb490d2e6d5bffc4b6816303528efe71f6b97573fb2e774b5c
User & Date: serhiy.storchaka 2026-10-11 07:35:29.356
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-11
07:35
Fix [1902890]: compiled [regexp] did not treat an RE value starting with "-" as a switch, unlike the... closed check-in: 0b36adaf16 user: serhiy.storchaka tags: regexp-compile-runtime-switch
2026-10-10
22:30
Fix [75c9d9cece]: regexp sometimes allows an invalid backref to be matched check-in: 9383b0c913 user: jan.nijtmans tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to generic/tclCompCmdsGR.c.
Changes to tests/regexpComp.test.