Skip to content
Tcl Source Code History Of Ticket 2889257
Login

History Of Ticket 2889257

Artifacts Associated With Ticket 2889257

  1. Ticket change [59bb2fea2b] (rid 118017) by mistachkin on 2009-10-30 06:28:10:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      My research indicates this is due to the EnvTraceProc function calling the function TclSetupEnv for all [array] related trace operations, which deletes the entire global env array and any/all existing array searches with it as part of the process of "synchronizing" the contents of the env array with the actual environment.  Therefore, it is impossible to actually use the array search functionality with the global env array.
      
      This bug also seems to apply to Tcl 8.4 and 8.5.
      
      Example:
      
      set s [array startsearch env]; # returns OK, s-1-env
      array nextelement env $s; # returns ERROR, couldn't find search "s-1-env"
      
      
    4. foundin initialized to: "obsolete: 8.6b1.1"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "mistachkin"
    10. subsystem initialized to: "08. Environment Variables"
    11. title initialized to: "[array startsearch] and friends do not work on env"
    12. type initialized to: "Bug"
  2. Ticket change [2bc41a6b5d] (rid 118799) by msofer on 2009-10-30 17:27:02:

    1. closedate changed to: "2009-10-30T10:27:02"
    2. closer changed to: "msofer"
    3. icomment:
      Duplicate: #1787911.
      
      This way since 7.6 AFAIU, hard to define proper semantics. Solution might be to only use [array names] on env
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Duplicate"
    7. status changed to: "Pending"
    8. username: "msofer"
  3. Ticket change [98e8953dc7] (rid 110691) by mistachkin on 2009-10-31 08:32:52:

    1. icomment:
      This limitation (not being able to ever perform array searches on the env array) should at least be documented clearly.
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "mistachkin"
  4. Ticket change [5a9a674d5d] (rid 259683) by serhiy.storchaka on 2026-10-21 09:58:25:

    1. icomment:
      Duplicate of [1787911fff]. Array searches on <tt>env</tt> work since 8.6.2, where [afaff33553] stopped env from being recreated on array access.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
    4. resolution changed to: "Duplicate"
    5. status changed to: "Closed"