Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 81b56a083417529384d1bc21dd384b310f99184b
Ticket: 845241ffffffffffffffffffffffffffffffffff
Unsetting env vars in slave interps
User & Date: sbron on 2003-11-19 16:43:19
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    When an evironment variable has been unset in a slave
    interpreter it is left in some strange state:
    - info exists reports the variable still exists
    - set and $env report the variable doesn't exist
    - using an upvar alias the variable still has its
    original value
    
    Tested on Linux 2.4.20 and windows 98.
    
    Code to reproduce the problem (use some existing
    environment variable):
    
    puts $env(SHELL)
    interp create i
    i eval {unset env(SHELL)}
    catch {set env(SHELL)} msg
    puts $msg
    puts [info exists env(SHELL)]
    upvar 0 env(SHELL) foo
    puts $foo
    
    
    
  4. foundin changed to: "obsolete: 8.4.4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "sbron"
  9. subsystem changed to: "08. Environment Variables"
  10. title changed to: "Unsetting env vars in slave interps"
  11. type changed to: "Bug"