Skip to content
Tcl Source Code History Of Ticket 1243354
Login

History Of Ticket 1243354

Artifacts Associated With Ticket 1243354

  1. Ticket change [1cd6478e53] (rid 90680) by dgp on 2005-07-22 22:06:43:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
      
      
    4. foundin initialized to: "obsolete: 8.5a4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "18. Commands M-Z"
    10. title initialized to: "[string first] misbehavior"
    11. type initialized to: "Bug"
  2. Ticket change [06bf28e071] (rid 89267) by dgp on 2005-07-23 05:06:43:

    1. icomment:
      
      
      File Added - 142950: stringfirst.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [64b99332e9] (rid 92818) by hobbs on 2005-07-23 05:15:13:

    1. 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.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. resolution changed to: "Wont Fix"
    5. username: "hobbs"
  4. Ticket change [591e03b54a] (rid 117922) by msofer on 2005-07-23 05:19:49:

    1. 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. "
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. resolution changed to: "None"
    5. username: "msofer"
  5. Ticket change [ba8657821e] (rid 129337) by dgp on 2005-07-23 05:26:27:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      FWIW, this updated patch
      fixes the same issue
      in [string last].
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Add attachment "1243354.patch" [ede22eb0ff] (rid 103978) by dgp on 2005-07-23 05:26:28.

  7. Ticket change [d262840fd9] (rid 113528) by dgp on 2005-07-23 05:26:28:

    1. icomment:
      
      
      File Added - 142951: 1243354.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [5510633959] (rid 94064) by dgp on 2005-07-23 05:26:29:

    1. icomment:
      
      
      File Deleted - 142950: 
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [5444c46c69] (rid 93918) by dgp on 2005-07-23 05:27:47:

    1. 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.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  10. Ticket change [5ee6dfaa79] (rid 115714) by dkf on 2005-09-01 21:40:39:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Note that strstr() finds the empty needle at the start of
      the haystack.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  11. Ticket change [97ebcf410b] (rid 110520) by dkf on 2006-04-17 22:46:13:

    1. assignee changed to: "hobbs"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      Assigning to person made nervous by the thought of fixing it...
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. username: "dkf"
  12. Ticket change [d730a7e2f3] (rid 123937) by dgp on 2008-08-08 03:24:52:

    1. 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.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  13. Add attachment "1243354-update.patch" [990fa86f24] (rid 110720) by dgp on 2008-09-19 02:10:43.

  14. Ticket change [7fd474ad0a] (rid 97628) by dgp on 2008-09-19 02:10:44:

    1. icomment:
      
      
      File Added - 293917: 1243354-update.patch
      
      
      New patch makes the [string first]
      and [string last] change for
      testing.
      
      File Added: 1243354-update.patch
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  15. Ticket change [f72892dacd] (rid 91330) by dgp on 2008-12-10 02:10:16:

    1. 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.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  16. Ticket change [d712158b5b] (rid 123915) by dgp on 2008-12-10 02:10:20:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2008-12-09T19:10:20"
    3. closer changed to: "dgp"
    4. resolution changed to: "Rejected"
    5. status changed to: "Closed"