Artifacts Associated With Ticket 6235d23a7619cdab
Ticket change [9780fe0bb1] (rid 194892) by erikleunissen on 2021-06-19 19:06:02:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
When creating a child interpreter, environment variables are handled differently between Linux and Windows. While I find the behaviour under Linux logical, I don't understand the behaviour under Windows, especially the fact that creation of a child interpreter affects the environment variables in the parent interpreter. The attached file exercise.tcl demonstrates the issue when I run it under the two mentioned OS's. My observations: > tclsh exercise.tcl unix 1 0 0 0 > tclsh exercise.tcl windows 1 0 1 1
- foundin initialized to: "8.6.11"
- is_private initialized to: "0"
- login: "erikleunissen"
- priority initialized to: "5 Medium"
- private_contact initialized to: "609f4c7ecf7dbb7a46acdc7eb164753d196088a6"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "erikleunissen"
- subsystem initialized to: "08. Environment Variables"
- title initialized to:
Inconsistent handling of environment variables with [interp create]
- type initialized to: "Bug"
Add attachment "exercise.tcl" [1d37ef4da5] (rid 194893) by erikleunissen on 2021-06-19 19:06:24.
Ticket change [474f250309] (rid 195187) by erikleunissen on 2021-07-18 12:05:02:
- icomment:
I believe that this is more severe than "Minor". So I take the liberty to increase the severity level. Also, making the questionable behaviour under windows more conspicuous by presenting it here in the ticket body (instead of an attachment). % set tcl_platform(platform) windows % info exists env(HOME) 1 % unset env(HOME) % info exists env(HOME) 0 % interp create child child interp eval child {info exists env(HOME)} 1 % info exists env(HOME) 1 - login: "erikleunissen"
- mimetype: "text/plain"
- severity changed to: "Important"
- icomment: