From: SourceForge.net <no...@so...> - 2009-10-31 01:32:53
|
Bugs item #2889257, was opened at 2009-10-29 23:28 Message generated for change (Comment added) made by mistachkin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=2889257&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 08. Environment Variables Group: development: 8.6b1.1 >Status: Open Resolution: Duplicate Priority: 5 Private: No Submitted By: Joe Mistachkin (mistachkin) Assigned to: Jeffrey Hobbs (hobbs) Summary: [array startsearch] and friends do not work on env Initial Comment: 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" ---------------------------------------------------------------------- >Comment By: Joe Mistachkin (mistachkin) Date: 2009-10-30 18:32 Message: This limitation (not being able to ever perform array searches on the env array) should at least be documented clearly. ---------------------------------------------------------------------- Comment By: miguel sofer (msofer) Date: 2009-10-30 03:27 Message: Duplicate: #1787911. This way since 7.6 AFAIU, hard to define proper semantics. Solution might be to only use [array names] on env ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=2889257&group_id=10894 |