Artifacts Associated With Ticket 823524ffffffffffffffffffffffffffffffffff
Ticket change [3ab0a4867a] (rid 112601) by hemanglavana on 2003-10-14 15:47:31:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
There seems to be a bug in regsub command in tcl8.4 version: (bin) 1 % info patch 8.4.5 (bin) 2 % set b "a\nb\nc\nd" a b c d (bin) 3 % regsub -all -line ^ $b # #a ##b ##c ##d (bin) 4 % regsub -all -line ^ $b # c 7 (bin) 5 % set c #a ##b ##c ##d (bin) 6 % package provide TclDevKit 3.0 (bin) 7 % Note the ## for b, c and d lines. The tclversion is the one provided by AK with TclDevKit3.0 pre-release. Here's the output of correct behavior with tcl8.3: squish:43> tclsh % info patch 8.3.3 % set b "a\nb\nc\nd" a b c d % regsub -all -line ^ $b # wrong # args: should be "regsub ?switches? exp string subSpec varName" % regsub -all -line ^ $b # c 4 % set c #a #b #c #d %
- foundin initialized to: "obsolete: 8.4.5"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "hemanglavana"
- subsystem initialized to: "43. Regexp"
- title initialized to: "bug in regsub in tcl8.4 version"
- type initialized to: "Bug"
Ticket change [b1f59be14f] (rid 98255) by hobbs on 2003-10-15 00:13:03:
- assignee changed to: "vincentdarley"
- icomment:
Logged In: YES user_id=72656 This bug was introduced the following patch: 2003-06-17 Vince Darley * generic/tclCmdMZ.c: * tests/regexp.test: fixing of bugs related to regexp and regsub matching of empty strings. Addition of a number of new tests. Assigning to Vince to correct regression failure that would be shown with this test: test regexp-21.11 {multiple matches handle newlines} { regsub -all -line -- ^ "a\nb\nc" \# } "\#a\n\#b\n\#c" - login: "hobbs"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- username: "hobbs"
Ticket change [1e6d7f111d] (rid 90974) by vincentdarley on 2003-10-15 01:24:40:
- closedate changed to: "2003-10-14T18:24:40"
- closer changed to: "vincentdarley"
- icomment:
Logged In: YES user_id=32170 Fixed. Thanks for the report.
- login: "vincentdarley"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "vincentdarley"