Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fbc2d9f857b24674c52e070b260f5ec922ff1fae
Ticket: 610658ffffffffffffffffffffffffffffffffff
Blank environment variables on windows
User & Date: jkbonfield on 2002-09-17 16:59:49
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    MS Windows cannot deal with environment variables that 
    are blank. It uses this as a way to unset them. I view this as 
    a bug in Windows, but it does cause Tcl some headaches.
    
    % set env(FOO) ""
    % info exists env(FOO)
    1
    % puts env(FOO)
    can't read "env(FOO)": no such variable
    % parray env
    # output of environment, not including FOO
    % info exists env(FOO)
    0
    %
    
    It appears that parray updates the env cache and so resets 
    the array elements.
    Under 8.3.1 this worked in as much as info exists env(FOO) 
    would always yield 0 or a blank environment variable.
    
    James
    
    
  4. foundin changed to: "obsolete: 8.4.0"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "jkbonfield"
  9. subsystem changed to: "08. Environment Variables"
  10. title changed to: "Blank environment variables on windows"
  11. type changed to: "Bug"