Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 59bb2fea2b30ec1f8ea1b6073391904be75b0466
Ticket: 2889257fffffffffffffffffffffffffffffffff
[array startsearch] and friends do not work on env
User & Date: mistachkin on 2009-10-30 06:28:10
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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 changed to: "obsolete: 8.6b1.1"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "mistachkin"
  10. subsystem changed to: "08. Environment Variables"
  11. title changed to: "[array startsearch] and friends do not work on env"
  12. type changed to: "Bug"