Skip to content
Tcl Source Code History Of Ticket 6235d23a7619cdab
Login

History Of Ticket 6235d23a7619cdab

Artifacts Associated With Ticket 6235d23a7619cdab

  1. Ticket change [9780fe0bb1] (rid 194892) by erikleunissen on 2021-06-19 19:06:02:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. 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
      
    5. foundin initialized to: "8.6.11"
    6. is_private initialized to: "0"
    7. login: "erikleunissen"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "609f4c7ecf7dbb7a46acdc7eb164753d196088a6"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "erikleunissen"
    14. subsystem initialized to: "08. Environment Variables"
    15. title initialized to:
      Inconsistent handling of environment variables with [interp create]
      
    16. type initialized to: "Bug"
  2. Add attachment "exercise.tcl" [1d37ef4da5] (rid 194893) by erikleunissen on 2021-06-19 19:06:24.

  3. Ticket change [474f250309] (rid 195187) by erikleunissen on 2021-07-18 12:05:02:

    1. 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
      
    2. login: "erikleunissen"
    3. mimetype: "text/plain"
    4. severity changed to: "Important"