Skip to content
Tcl Source Code History Of Ticket 218054
Login

History Of Ticket 218054

Artifacts Associated With Ticket 218054

  1. Ticket change [97ee09a60b] (rid 110524) by nobody on 2000-10-26 00:52:38:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 1446 Bug
      Version: 8.0.4
      SubmitDate: '1999-03-04'
      LastModified: '1999-07-02'
      Severity: LOW
      Status: Closed
      Submitter: pat
      ChangedBy: stanton
      OS: Windows NT
      OSVersion: 4.0
      Machine: X86
      FixedDate: '2000-10-25'
      ClosedDate: '1999-07-02'
      
      
      Name:
      vince darley
      
      Extensions:
      none
      
      ReproducibleScript:
      % regexp {abc([a-zA-Z]+)abc} "abcblahblahabc" "" middle
      1
      % set ""
      abcblahblahabc
      
      ObservedBehavior:
      My understanding was that "" can be used to tell regexp you don't care about a given subMatchVar, but it appears as if regexp instead sets the variable with null-name to the given match.
      
      This behaviour is counter-intuitive, and removes the possibility of an efficiency gain which would be had by not bothering to set the "" variables which the user clearly declared they don't want.
      
      
      
      This happens in Tcl 8.0.x and 8.1.x
      
      07/02/1999 10:52 - stanton - "" is a valid variable name, so the behavior is correct.  The user should use non-capturing parentheses in 8.1 to avoid extracting values unnecessarily
      
      
      
    4. foundin initialized to: "obsolete: 8.0.4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "43. Regexp"
    10. title initialized to: "weird behaviour of regexp and "" subMatchVar's"
    11. type initialized to: "Bug"
  2. Ticket change [f36bcc7ab4] (rid 129711) by welch on 2000-10-26 08:13:44:

    1. closedate changed to: "2000-10-26T01:13:44"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"