Artifacts Associated With Ticket 1102326fffffffff
Ticket change [93665016d0] (rid 105808) by lvirden on 2005-01-14 13:26:05:
- assignee initialized to: "pvgoran"
- cmimetype initialized to: "text/plain"
- 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 - foundin initialized to: "obsolete: 8.4.9"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "lvirden"
- subsystem initialized to: "43. Regexp"
- title initialized to: "regexp a{0} provides incorrect results"
- type initialized to: "Bug"
Ticket change [97cc75d0d0] (rid 110495) by lvirden on 2005-01-14 21:31:10:
- 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.
- login: "lvirden"
- mimetype: "text/plain"
- username: "lvirden"
- icomment:
Ticket change [3f97bccb8a] (rid 121489) by dgp on 2005-01-15 03:35:37:
- status changed to: "Closed"
Ticket change [44b9fe8eb6] (rid 116752) by dgp on 2005-01-15 03:35:38:
- assignee changed to: "dgp"
- 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. - login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- username: "dgp"
Ticket change [c1328727c1] (rid 111282) by dgp on 2005-01-15 03:35:39:
- closedate changed to: "2005-01-14T20:35:39"
- closer changed to: "dgp"