Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c55997993b3bbabbdc25f1cf520af94debb24716
Ticket: 218056ffffffffffffffffffffffffffffffffff
regexp won't parse particular expression
User & Date: nobody on 2000-10-26 00:52:39
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1448 Bug
    Version: 8.0.4
    SubmitDate: '1999-03-04'
    LastModified: '1999-08-04'
    Severity: LOW
    Status: Closed
    Submitter: pat
    ChangedBy: stanton
    OS: HP-UX
    OSVersion: B.10.20
    Machine: Other
    FixedDate: '2000-10-25'
    ClosedDate: '1999-08-04'
    
    
    Name:
    David A. Schultz
    
    CVS:
    18 Dec 1998,  13:00
    
    Extensions:
    n/a
    
    CustomShell:
    none
    
    ReproducibleScript:
    regexp "^[ ]*#[ ]*include" "  #  include"
       results in  "couldn't compile regular expression pattern: *+ operand...."
       However,  in unix the grep -E used it just fine.
    
    regexp "^#[ ]*include" "#   include"   --> 0
    regexp "(^#)[ ]*include"   "#    include" --> 1
       Why are the paren's needed?
    
    
    
    ObservedBehavior:
    In 6
    
    
    
    DesiredBehavior:
    I expect   regexp "^[ ]*#[ ]*include"  "  #     include"
      to yield 1.   grep -E matches, so it is a valid reg exp,
       and it would appear that tcl mimics unix regexps.
    
    
    
    
    
    
    
    08/04/1999 17:48 - stanton - The user has failed to quote the [] characters appropriately, so the brackets are being interpreted as a command substitution before the pattern is passed to regexp.
    
    
    
  4. foundin changed to: "obsolete: 8.0.4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "43. Regexp"
  10. title changed to: "regexp won't parse particular expression"
  11. type changed to: "Bug"