Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9129f1297bf614a009eb66102bc25e03873af610
Ticket: 219233ffffffffffffffffffffffffffffffffff
string match oddity when - is the last char
User & Date: matzek on 2007-06-14 20:56:20
Changes

  1. icomment:
    Logged In: YES 
    user_id=330806
    Originator: NO
    
    Hi!
    
    I add another example to the list:
    
    % string match {*[.-]*} "2.1-Beta"
    0
    % string match {*[-.]*} "2.1-Beta"
    1
    % string match {*[.-]*} "Beta-2.1"
    1
    % string match {*[-.]*} "Beta-2.1"
    1
    
    If this is not going to be fixed soon, I suggest to at least document this behavior. Could be enough to just add the hyphen to the list of characters that need to be escaped...
    
    kind regards
    -- Matthias Kraft
    
    
  2. login: "matzek"
  3. mimetype: "text/plain"
  4. username: "matzek"