Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 90b0e9c9ad643b03443b74f452bd752305b4a24b
Ticket: 696707ffffffffffffffffffffffffffffffffff
trace command on 'env' bug
User & Date: tomk on 2003-03-03 17:25:17
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The trace command doesn't work on the env array.
    
    % tclsh 
    % info tclversion
    8.4
    % array set X {}
    % proc XValChx {a e op} { if {![info exists ::X($e)]}
    {set ::X($e) $e}}
    % trace var X r XValChx
    % puts "X: $X(TEST)"
    X: TEST
    % array set env {}
    % proc EnvValChx {a e op} {if {![info exists
    ::env($e)]} {set ::env($e) $e}}
    % trace var env r EnvValChx
    % puts "ENV: $env(TEST2)"
    can't read "env(TEST2)": no such variable
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "tomk"
  9. subsystem changed to: "18. Commands M-Z"
  10. title changed to: "trace command bug"
  11. type changed to: "Bug"