Skip to content
Tcl Source Code History Of Ticket 219209
Login

History Of Ticket 219209

Artifacts Associated With Ticket 219209

  1. Ticket change [92d4510eaf] (rid 120843) by nobody on 2000-10-26 05:03:37:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 3661 Bug
      Version: 8.2
      SubmitDate: '1999-11-23'
      LastModified: '2000-04-26'
      Severity: SER
      Status: Assigned
      Submitter: techsupp
      ChangedBy: hobbs
      RelatedBugIDs: 4109 1999
      OS: All Windows
      FixedDate: '2000-10-25'
      ClosedDate: '1999-11-24'
      
      
      Name:
      Mo DeJong
      
      Comments:
      I seem to remember a strange problem like this with Tcl 8.0. At the time,
      the problem was that after an env var was set a variable trace would get
      fired and the trace would delete an empty env var.
      
      ReproducibleScript:
      Setting an env variable to the empty string actually removes the variable
      from the env array under Windows. Here is a quick example.
      
      % set env(CLASSPATH) value
      % parray env
      env(BLASTER)    = A220 I5 D1 T4
      env(CLASSPATH)  = value
      env(CMDLINE)    = WIN
      ...
      
      % set env(CLASSPATH) ""
      % parray env
      env(BLASTER)    = A220 I5 D1 T4
      env(CMDLINE)    = WIN
      ... (no CLASSPATH key)
      
      ObservedBehavior:
      The env var is deleted when set to "".
      
      DesiredBehavior:
      I want to env var to be set properly.
      This same code works fine under Linux.
      
      
      This is the defined behavior of Windows env variables,
      but isn't acceptable because the following fails:
      
      if {! [info exists env(CLASSPATH)]} {
        set env(CLASSPATH) ""
      }
      set env(CLASSPATH) $env(CLASSPATH);C:\\dir
      
      The interim work-around is to do a read trace on the env
      array for Windows. 
      -- 11/24/1999 hobbs
      
      --
      
      What about:
      
      --------------------------------------
      set tmpClasspath ""
      if { [info exists env(CLASSPATH)] } {
      set tmpClasspath $env(CLASSPATH)
      }
      set tmpClasspath "$tmpClasspath;C:\\dir"
      ...
      set env(CLASSPATH) $tmpClasspath
      --------------------------------------
      
      This has the additional benefit of avoiding the overhead of working with the env array except when it's absolutely necessary.
      
      Removing environment variables when they are set to null is the normal behavior on Windows; I don't know if it is right to change that behavior.
      
      -- 04/10/2000 ericm 
      -- 04/26/2000 hobbs
      
      
      
    4. foundin initialized to: "obsolete: 8.2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "07. Variables"
    10. title initialized to:
      setting env variable array is broken under Windows.
      
    11. type initialized to: "Bug"
  2. Ticket change [d7e36ffdeb] (rid 107344) by dkf on 2001-02-07 22:40:21:

    1. subsystem changed to: "08. Environment Variables"
  3. Ticket change [4b1c0028b8] (rid 126642) by andreas_kupries on 2001-09-08 06:32:22:

    1. assignee changed to: "davygrvy"
  4. Ticket change [5a68aaf93c] (rid 118137) by davygrvy on 2001-09-08 06:49:42:

    1. assignee changed to: "nobody"
    2. icomment:
      Logged In: YES 
      user_id=7549
      
      I can't look at this right now.
      
      
      
    3. login: "davygrvy"
    4. mimetype: "text/plain"
    5. username: "davygrvy"
  5. Ticket change [ccdf62d9d0] (rid 95780) by hobbs on 2001-12-13 03:26:39:

    1. status changed to: "Closed"
  6. Ticket change [f3b8f8a0b8] (rid 129767) by hobbs on 2001-12-13 03:26:40:

    1. closedate changed to: "2001-12-12T20:26:40"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      #488882 is a duplicate of this, with a few more examples.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Duplicate"
    7. username: "hobbs"