Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3230c841bf0963e371da3f6e84a3edad21c3185ac8fb14ffd7df946fe307b988
Ticket: 219233ffffffffffffffffffffffffffffffffff
string match oddity when - is the last char
User & Date: serhiy.storchaka on 2026-10-19 17:43:27
Changes

  1. foundin changed to: "8.6.18, 9.0.5, 9.1.0"
  2. icomment:
    Still present in 8.6, 9.0 and 9.1. Proposed fix for 9.1 in branch [/timeline?r=glob-bracket-posix|glob-bracket-posix], on top of [/timeline?r=glob-match-linear|glob-match-linear] (the matcher change for [a4a7f2abd3]): in all four matchers, a <tt>-</tt> right before the closing bracket is a literal, as in POSIX and Python's fnmatch. So <tt><nowiki>{[.-]}</nowiki></tt> matches only "." and "-", and <tt><nowiki>{*[.-]*}</nowiki></tt> matches "2.1-Beta". Test string-11.57; util-5.40, 5.41, 5.43 and 5.44 tested the old behaviour and are changed. Unbalanced brackets (<tt><nowiki>{[.-B}</nowiki></tt>) are not changed.
    
  3. login: "serhiy.storchaka"
  4. mimetype: "text/x-fossil-wiki"