Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 834398468f1a3c79de6a78bcd17b798522a173dc6e0a1abceb019a8e28d17f30
Ticket: 697b1bbfe3387b8f777e55d4aba9a4e20833e8ed
Incorrect argument handling by [regexp]
User & Date: erikleunissen on 2022-09-18 11:30:05
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    Here are the results of six invocations of the "regexp" command.
    They indicate incorrect argument handling.
    
    
    % set str "a-z"
    a-z
    % regexp - $str; #1
    bad option "-": must be -all, -about, -indices, -inline, -expanded, -line, -linestop, -lineanchor, -nocase, -start, or --
    % regexp \- $str; #2
    1
    % regexp {-} $str; #3
    bad option "-": must be -all, -about, -indices, -inline, -expanded, -line, -linestop, -lineanchor, -nocase, -start, or --
    % regexp -\\ $str; #4
    couldn't compile regular expression pattern: invalid escape \ sequence
    % regexp \\- $str; #5
    1
    % set initstring "-"
    -
    % regexp $initstring $str; #6
    1
    %
    
    This discussion thread at c.l.t. provides some clues:
    
        https://groups.google.com/g/comp.lang.tcl/c/pbqqj8tcIUk
    
  5. foundin changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "erikleunissen"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "erikleunissen"
  13. subsystem changed to: "18. Commands M-Z"
  14. title changed to: "Incorrect argument handling by [regexp]"
  15. type changed to: "Bug"