Skip to content
Tcl Source Code History Of Ticket 1102326fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1102326fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1102326fffffffffffffffffffffffffffffffff

  1. Ticket change [93665016d0] (rid 105808) by lvirden on 2005-01-14 13:26:05:

    1. assignee initialized to: "pvgoran"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      set pat1 {a{0}}
      set pat2 {a{1}}
      set pat3 {a{0,1}}
      
      set string "xyz"
      foreach i [list $pat1 $pat2 $pat3] {
              puts "Does $string match $i? [expr [regexp --
      $i $string] ? yes : no]"
      }
      
      set string "abc"
      foreach i [list $pat1 $pat2 $pat3] {
              puts "Does $string match $i? [expr [regexp --
      $i $string] ? yes : no]"
      }
      
      The above code was expected to report that in the first
      loop, a yes, then two nos and in the second loop, one
      no then two yeses.
      
      On sparc solaris with 8.4.8 (and 8.5a2), I get this
      instead:
       $ ./tclsh8.4 /tmp/testre          
      Does xyz match a{0}? yes
      Does xyz match a{1}? no
      Does xyz match a{0,1}? yes
      Does abc match a{0}? yes
      Does abc match a{1}? yes
      Does abc match a{0,1}? yes
      
      
    4. foundin initialized to: "obsolete: 8.4.9"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "lvirden"
    9. subsystem initialized to: "43. Regexp"
    10. title initialized to: "regexp a{0} provides incorrect results"
    11. type initialized to: "Bug"
  2. Ticket change [97cc75d0d0] (rid 110495) by lvirden on 2005-01-14 21:31:10:

    1. icomment:
      Logged In: YES 
      user_id=15949
      
      Doesn't work for me even using tclkits and ActiveTcl's
      tclsh, so it isn't  the build of the software .  I don't
      have a Solaris 9 machine to try things on.  Note that the
      concept of the report is conceptually the same as a
      discussion thread currently going on comp.lang.tcl , where
      someone else from another platform and site reports similar
      problems.
      
      
    2. login: "lvirden"
    3. mimetype: "text/plain"
    4. username: "lvirden"
  3. Ticket change [3f97bccb8a] (rid 121489) by dgp on 2005-01-15 03:35:37:

    1. status changed to: "Closed"
  4. Ticket change [44b9fe8eb6] (rid 116752) by dgp on 2005-01-15 03:35:38:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      Those results look correct to me.
      
      Keep in mind that the empty
      string is a substring of every
      string, and the patterns a{0}
      and a{0,1} match the empty string.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. resolution changed to: "Invalid"
    6. username: "dgp"
  5. Ticket change [c1328727c1] (rid 111282) by dgp on 2005-01-15 03:35:39:

    1. closedate changed to: "2005-01-14T20:35:39"
    2. closer changed to: "dgp"