Artifacts Associated With Ticket 17902c1882
Ticket change [b4addcd7ca] (rid 157629) by anonymous on 2017-11-01 18:50:21:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
https://www.androwish.org/index.html/fdiff?v1=50e9b426df9f2e14&v2=0ca5e5078019f13a&sbs=1 uses "array exist env" to force population of the internal representation of the env stuff for the case that existence of env(PATHEXT) is not initially known per "info exist". Otherwise an internal read trace may cause the "info exist" to fail. This was observed on ReactOS. PS: Not that ReactOS is in any sense a reference but still the only independent implementation of a Windows like OS, and thus IMO worthwhile a platform for tests.
- foundin initialized to: "8.6.7"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- private_contact initialized to: "0b3aff16612e1e9f3b675963fa64e01bd1d89307"
- resolution initialized to: "None"
- severity initialized to: "Cosmetic"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to: "env(PATHEXT) not present"
- type initialized to: "Bug"
Ticket change [42c9e8b89d] (rid 157638) by sebres on 2017-11-02 12:05:21:
- icomment:
<blockquote> > Otherwise an internal read trace may cause the "info exist" to fail. This was observed on ReactOS. </blockquote> Can you provide more info here (actual error, call stack, etc.). Because "internal read trace" (to read env-array) looks safe here (for single element as well as on read the whole array). Also if PATHEXT don't set on ReactOS environment, it should nevertheless work. I know currently only one usage of it in the tcl-library (in init.tcl): <pre><code>proc auto_execok name { ... if {[info exists env(PATHEXT)]} { # Add an initial ; to have the {} extension check first. set execExtensions [split ";$env(PATHEXT)" ";"] } else { set execExtensions [list {} .com .exe .bat .cmd] } </code></pre> Which looks pretty safe... - login: "sebres"
- mimetype: "text/x-fossil-wiki"
- subsystem changed to: "08. Environment Variables"
- icomment:
Ticket change [30cc8e20f5] (rid 157644) by anonymous on 2017-11-02 19:51:08:
- icomment:
While trying to reproduce it today I failed miserably. No idea what went really wrong. Sorry for the noise. Please close the ticket.
- login: "anonymous"
- mimetype: "text/plain"
- icomment:
Ticket change [5be5842aca] (rid 157645) by fvogel on 2017-11-02 20:17:52:
- closedate changed to: "2458060.34574145"
- closer changed to: "fvogel"
- login: "fvogel"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
Ticket change [4e1aecc5d2] (rid 157654) by anonymous on 2017-11-03 07:16:45:
- closedate changed to: "2458060.80330683"
- closer changed to: "anonymous"
- icomment:
Sorry, more noise follows. I believe now that I understand the problem. ReactOS uses creative syntax for PATH and COMSPEC ("Path" and "ComSpec"). There are two brains in the Tcl core dealing with the environment using traces, library/init.tcl with element traces on PATH/COMSPEC and creative written versions, and generic/tclEnv.c with a whole array trace syncing the environ[] C library array to the env Tcl array. There might be circumstances where the two logics badly interact with each other. Thus I've removed the library/init.tcl logic to solely deal with upper casing the PATH and COMSPEC entries in generic/tclEnv.c as can be seen in this check-in: https://www.androwish.org/index.html/info/2f649dbd33a6f249 - login: "anonymous"
- mimetype: "text/plain"
Ticket change [7faf2704b4] (rid 157655) by fvogel on 2017-11-03 07:32:42:
- closer changed to: "nobody"
- login: "fvogel"
- mimetype: "text/plain"
- resolution changed to: "None"
- status changed to: "Open"
Ticket change [5dccdf3277] (rid 259701) by serhiy.storchaka on 2026-10-21 10:03:36:
- icomment:
The approach suggested here, upper-casing PATH and COMSPEC in tclEnv.c, has been in Tcl since 8.6.10 ([e8d0d31e48], ticket [9471e6e304]), and Tcl 9 no longer has the init.tcl env traces. The reporter could not reproduce the original problem, so closing.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- icomment: