Overview
| Artifact ID: | d697a01f296a6216b8976098679bb2ec95264575f40187ad2bfab2eca41d4e49 |
|---|---|
| Ticket: | 845241ffffffffffffffffffffffffffffffffff
Unsetting env vars in slave interps |
| User & Date: | jan.nijtmans on 2026-10-30 13:08:19 |
Changes
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2461344.0474478933"
- closer changed to: "jan.nijtmans"
- 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 - icomment:
Fixed in [1f1167cd23|trunk], core-9-0-branch and core-8-6-branch Many thanks!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- severity changed to: "Minor"
- status changed to: "Closed"