Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d697a01f296a6216b8976098679bb2ec95264575f40187ad2bfab2eca41d4e49
Ticket: 845241ffffffffffffffffffffffffffffffffff
Unsetting env vars in slave interps
User & Date: jan.nijtmans on 2026-10-30 13:08:19
Changes

  1. assignee changed to: "jan.nijtmans"
  2. closedate changed to: "2461344.0474478933"
  3. closer changed to: "jan.nijtmans"
  4. 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
    
  5. icomment:
    Fixed in [1f1167cd23|trunk], core-9-0-branch and core-8-6-branch
    
    Many thanks!
    
  6. login: "jan.nijtmans"
  7. mimetype: "text/x-fossil-wiki"
  8. resolution changed to: "Fixed"
  9. severity changed to: "Minor"
  10. status changed to: "Closed"