Artifacts Associated With Ticket 1243354fffffffff
Ticket change [1cd6478e53] (rid 90680) by dgp on 2005-07-22 22:06:43:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
I'd be happier with [string first] if it were a true substring finder, but it fails that task finding empty strings: % string first {} xyz -1 Here's a patch to make [string first] behave as I prefer. - foundin initialized to: "obsolete: 8.5a4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "18. Commands M-Z"
- title initialized to: "[string first] misbehavior"
- type initialized to: "Bug"
Ticket change [06bf28e071] (rid 89267) by dgp on 2005-07-23 05:06:43:
- icomment:
File Added - 142950: stringfirst.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [64b99332e9] (rid 92818) by hobbs on 2005-07-23 05:15:13:
- icomment:
Logged In: YES user_id=72656 This proposed change makes me nervous ... this behavior has been in Tcl forever: tellar [~] 115 > tclsh7.6 % string first {} abc -1 and I'd leave it that way, but clarify in the docs. - login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- username: "hobbs"
- icomment:
Ticket change [591e03b54a] (rid 117922) by msofer on 2005-07-23 05:19:49:
- icomment:
Logged In: YES user_id=148712 IMO, this patch also requires patching the manual page. "Search string2 for a sequence of characters that exactly match the characters in string1. If found, return the index of the first character in the first such match within string2. " should be changed, maybe to "Search string2 for a substring that exactly matches string1. If found, return the starting index of the first such match within string2. "
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "None"
- username: "msofer"
- icomment:
Ticket change [ba8657821e] (rid 129337) by dgp on 2005-07-23 05:26:27:
- icomment:
Logged In: YES user_id=80530 FWIW, this updated patch fixes the same issue in [string last].
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "1243354.patch" [ede22eb0ff] (rid 103978) by dgp on 2005-07-23 05:26:28.
Ticket change [d262840fd9] (rid 113528) by dgp on 2005-07-23 05:26:28:
- icomment:
File Added - 142951: 1243354.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [5510633959] (rid 94064) by dgp on 2005-07-23 05:26:29:
- icomment:
File Deleted - 142950:
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [5444c46c69] (rid 93918) by dgp on 2005-07-23 05:27:47:
- icomment:
Logged In: YES user_id=80530 Also, FWIW, this "feature" of [string first] and [string last] not being able to find empty substrings may be related to the "feature" of [string replace] that it cannot replace empty substrings.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [5ee6dfaa79] (rid 115714) by dkf on 2005-09-01 21:40:39:
- icomment:
Logged In: YES user_id=79902 Note that strstr() finds the empty needle at the start of the haystack.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [97ebcf410b] (rid 110520) by dkf on 2006-04-17 22:46:13:
- assignee changed to: "hobbs"
- icomment:
Logged In: YES user_id=79902 Assigning to person made nervous by the thought of fixing it...
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
Ticket change [d730a7e2f3] (rid 123937) by dgp on 2008-08-08 03:24:52:
- icomment:
Logged In: YES user_id=80530 Originator: YES Related regexp bug: kbk% regexp -all -indices -inline -- {} foo {0 -1} {1 0} {2 1} kbkbut not {3 2} kbkFWIW: % regexp -all -indices -inline -- {$} foo {3 2} kbkso it *can* match an empty substring at the end... but *doesn't* for an empty needle. - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "1243354-update.patch" [990fa86f24] (rid 110720) by dgp on 2008-09-19 02:10:43.
Ticket change [7fd474ad0a] (rid 97628) by dgp on 2008-09-19 02:10:44:
- icomment:
File Added - 293917: 1243354-update.patch New patch makes the [string first] and [string last] change for testing. File Added: 1243354-update.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [f72892dacd] (rid 91330) by dgp on 2008-12-10 02:10:16:
- icomment:
This was attempted as part of TIP 323, but was found to be too disruptive to expectations of existing code. If a substring finder is needed, a new command will have to be employed for that purpose.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [d712158b5b] (rid 123915) by dgp on 2008-12-10 02:10:20:
- assignee changed to: "dgp"
- closedate changed to: "2008-12-09T19:10:20"
- closer changed to: "dgp"
- resolution changed to: "Rejected"
- status changed to: "Closed"