Overview
| Artifact ID: | 42c9e8b89d1304e7782fed390c0b59a790ba7125171dc48ba2b79a31c8b4b558 |
|---|---|
| Ticket: | 17902c18822fc2f14d9ab7c8fc2be704bb5631bf
env(PATHEXT) not present |
| User & Date: | sebres on 2017-11-02 12:05:21 |
Changes
- 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"