diff options
Diffstat (limited to 'library/init.tcl')
-rw-r--r-- | library/init.tcl | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/library/init.tcl b/library/init.tcl index 1ccce27..d5b9c03 100644 --- a/library/init.tcl +++ b/library/init.tcl @@ -80,42 +80,6 @@ namespace eval tcl { namespace eval tcl::Pkg {} -# Windows specific end of initialization - -if {(![interp issafe]) && ($tcl_platform(platform) eq "windows")} { - namespace eval tcl { - proc EnvTraceProc {lo n1 n2 op} { - global env - set x $env($n2) - set env($lo) $x - set env([string toupper $lo]) $x - } - proc InitWinEnv {} { - global env tcl_platform - foreach p [array names env] { - set u [string toupper $p] - if {$u ne $p} { - switch -- $u { - COMSPEC - - PATH { - set temp $env($p) - unset env($p) - set env($u) $temp - trace add variable env($p) write \ - [namespace code [list EnvTraceProc $p]] - trace add variable env($u) write \ - [namespace code [list EnvTraceProc $p]] - } - } - } - } - if {![info exists env(COMSPEC)]} { - set env(COMSPEC) cmd.exe - } - } - InitWinEnv - } -} # Setup the unknown package handler |