Skip to content
Tcl Source Code History Of Ticket b492c33154
Login

History Of Ticket b492c33154

Artifacts Associated With Ticket b492c33154

  1. Ticket change [1eae5dcb01] (rid 253306) by apnadkarni on 2026-05-06 15:59:34:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. comment initialized to:
      The following inconsistent behavior is seen on Windows. Setting an env variable to the empty string unsets it (as documented) but `info exists` thinks it is still defined.
      
      ```
      % info exists env(TMP)
      1
      % set env(TMP)
      D:\Temp
      % set env(TMP) ""
      % info exists env(TMP)
      1
      % set env(TMP)
      can't read "env(TMP)": no such variable
      ```
      
    5. foundin initialized to: "8.6"
    6. is_private initialized to: "0"
    7. login: "apnadkarni"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "apnadkarni"
    14. subsystem initialized to: "- New Builtin Commands"
    15. title initialized to: "Inconsistent behaviour with env array on Windows"
    16. type initialized to: "Bug"
  2. Ticket change [8a115f5a74] (rid 253311) by apnadkarni on 2026-05-06 17:00:22:

    1. login: "apnadkarni"
    2. mimetype: "text/plain"
    3. subsystem changed to: "08. Environment Variables"
  3. Ticket change [8d43d217d0] (rid 253450) by chw on 2026-05-13 20:24:20:

    1. icomment: "How about the approach in the attached diff?"
    2. login: "chw"
    3. mimetype: "text/plain"
  4. Add attachment "tclEnv.c-diff" [fa521aa6e5] (rid 253452) by chw on 2026-05-13 20:24:35.

  5. Ticket change [f38f4643ef] (rid 253459) by apnadkarni on 2026-05-14 10:39:54:

    1. icomment:
      Thanks, Christian. I am a bit under the gun to get TIP's in before May 27. But will take a look after if no one else does.
      
      (I'm presuming you do not have commit privileges yourself.)
      
    2. login: "apnadkarni"
    3. mimetype: "text/plain"
  6. Ticket change [768e8b2c62] (rid 253460) by chw on 2026-05-14 15:38:00:

    1. icomment:
      Howdy Ashok, NP, take your time for real important work. This issue isn't pressing at all.
      
    2. login: "chw"
    3. mimetype: "text/plain"
  7. Ticket change [0d467872a7] (rid 253682) by apnadkarni on 2026-05-20 08:06:52:

    1. icomment:
      @chw, unfortunately, patch did not fix the problem. Instead, I'm now calling `Tcl_UnsetVar2` which will invoke a recursive trace but I don't think that is a problem.
      
      Proposed implementation in [bug-b492c33154](https://core.tcl-lang.org/tcl/timeline?r=bug-b492c33154)
      
    2. login: "apnadkarni"
    3. mimetype: "text/x-markdown"
  8. Ticket change [e4a6efa392] (rid 253704) by chw on 2026-05-21 03:44:55:

    1. icomment:
      Ashok, I see, you're right. The unset will perform the real work of clearing out the environment variable in a second trace firing.
      
    2. login: "chw"
    3. mimetype: "text/plain"
  9. Ticket change [980a7d3bd5] (rid 253726) by apnadkarni on 2026-05-21 08:16:12:

    1. closedate changed to: "2461181.8445894676"
    2. closer changed to: "apnadkarni"
    3. icomment: "Fixed in [8e0656d976] for 9.0.4"
    4. login: "apnadkarni"
    5. mimetype: "text/x-fossil-plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"