Artifacts Associated With Ticket 1787911fff
Ticket change [c8dbda013a] (rid 122177) by dgp on 2007-09-04 16:43:12:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Noted on the chat: % set a [array startsearch env] s-1-env % array anymore env $a couldn't find search "s-1-env"
- foundin initialized to: "obsolete: 8.5a7"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "07. Variables"
- title initialized to: "array search of env"
- type initialized to: "Bug"
Ticket change [2056f467fa] (rid 91296) by msofer on 2007-09-05 02:09:48:
- icomment:
Logged In: YES user_id=148712 Originator: NO Same result on 8.34, 8.4.14, 8.5a6 (pre varReform), HEAD.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [5c038de29a] (rid 118424) by msofer on 2007-10-28 00:11:49:
- icomment:
Logged In: YES user_id=148712 Originator: NO The problem is with the way EnvTraceProc works: for array traces it calls TclSetupEnv, which in turns first deletes the env variable and then recreates it. The deletion cancels all searches. What this means is that the env array cannot be searched at all. This should be either fixed or documented. Wary to muck with this stuff, especially since: (a) the bug is prehistoric, raised few complaints, no tests available (b) the bug combines two touchy issues (array searches and env), a fix may introduce subtle new bugs Requesting comments.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [66ef572f38] (rid 102815) by msofer on 2009-05-01 08:24:18:
- priority changed to: "6"
Ticket change [8011cb6fc0] (rid 259712) by serhiy.storchaka on 2026-10-21 10:03:37:
- icomment:
Fixed in 8.6.2 by [afaff33553] (ticket [219226]): env is no longer unset and recreated on array access, so [array startsearch env], anymore and nextelement work.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- icomment:
Ticket change [a10ec60565] (rid 260007) by serhiy.storchaka on 2026-10-22 17:19:30:
- closedate changed to: "2461334.9191784607"
- closer changed to: "serhiy.storchaka"
- login: "serhiy.storchaka"