Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 133bdc6daeb0867ecbf9001ef9568351a2a9f7cdcd072bd5805157a80e9d0e68
Ticket: 3602289fffffffffffffffffffffffffffffffff
EnvTraceProc errors when env var doesn't exist
User & Date: serhiy.storchaka on 2026-10-19 18:15:21
Changes

  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 in a narrower form: after another interp unsets an env variable, reading it here fails, but the stale element stays, so <nowiki>[info exists ::env(X)]</nowiki> still returns 1. The lappend case no longer errors.
    
    Proposed fix in branch [/timeline?r=env-stale-element|env-stale-element], also for [67fd4f973a] and [845241ffff]: the read trace removes the stale element and keeps the error. Unlike the attached patch, <nowiki>[set env(missing)]</nowiki> still fails, and elements without a value are kept, since they may hold traces (env-7.3, [9b4702]). Tests env-11.1 to 11.3.
    
  3. login: "serhiy.storchaka"
  4. mimetype: "text/x-fossil-wiki"