Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 14fdddf2a35fcb12ce7c584bc1b638d6463a12c6
Ticket: 3556218fffffffffffffffffffffffffffffffff
string match & glob: close-bracket in character set
User & Date: avl42 on 2012-08-11 00:22:57
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    As of now, it is not possible to include a close-bracket character in a bracketed set of allowed characters.
    [scan]'s format uses bracketed sets of allowed characters, too, and it *does* allow a close-bracket as first char.
    
    Having looked into the implementation of tcl's string-globbing, it seems that *before* entering that loop over the
    bracketed characters, an initial check for ']' in the pattern and in the string to be matched would be a really simple
    fix. Doing it that way, would even still allow a dash to be included verbatim, as well, by placing it right after the
    close-bracket.
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "avl42"
  10. subsystem changed to: "18. Commands M-Z"
  11. title changed to:
    string match & glob: close-bracket in character set
    
  12. type changed to: "Bug"