Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: edd9a1329768f48c8eecb5b9e00e50c3140e708d8410f3bded5b82049f1451dd
Ticket: 219233ffffffffffffffffffffffffffffffffff
string match oddity when - is the last char
User & Date: serhiy.storchaka on 2026-11-26 17:25:43
Changes

  1. icomment:
    Agreed, it is an incompatibility, so it is proposed for 9.1 only. But the current behaviour is hardly useful: <tt><nowiki>{[.-]}</nowiki></tt> is the range "." to "]", which matches "/", digits and upper-case letters, but not "-", and <tt><nowiki>{[]a]}</nowiki></tt> never matches. POSIX, glibc fnmatch, Python fnmatch, bash, dash and SQLite GLOB all treat a "-" before "]" as literal and a "]" first in a set as a member. Should this go through a TIP?
    
  2. login: "serhiy.storchaka"
  3. mimetype: "text/x-fossil-wiki"