Skip to content
Tcl Source Code History Of Ticket 845241ffff
Login

History Of Ticket 845241ffff

Artifacts Associated With Ticket 845241ffff

  1. Ticket change [81b56a0834] (rid 117088) by sbron on 2003-11-19 16:43:19:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.4.4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "sbron"
    9. subsystem initialized to: "08. Environment Variables"
    10. title initialized to: "Unsetting env vars in slave interps"
    11. type initialized to: "Bug"
  2. Ticket change [c397ba3d05] (rid 259323) by serhiy.storchaka on 2026-10-19 18:15:22:

    1. foundin changed to: "8.6.18, 9.0.5, 9.1.0"
    2. icomment:
      Still present in 8.6, 9.0 and 9.1: after a child interp unsets an env variable, <nowiki>[info exists env(X)]</nowiki> stays 1 in the parent. Proposed fix in branch [/timeline?r=env-stale-element|env-stale-element], together with [3602289fff] and [67fd4f973a]: the read trace removes the stale element. Test env-11.1.
      
    3. login: "serhiy.storchaka"
    4. mimetype: "text/x-fossil-wiki"
  3. Ticket change [d697a01f29] (rid 260864) by jan.nijtmans on 2026-10-30 13:08:19:

    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"