diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-03-07 08:39:37 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-03-07 08:39:37 (GMT) |
commit | 5b2b2aba5d8ab99e4cb03dc960f2695f0c0698a0 (patch) | |
tree | 659e01c5b151ea205fe9e93730d4a71de3977748 /library/init.tcl | |
parent | 62575cdd32102c8c01521d61cefda93a4a26493b (diff) | |
parent | efadd7170eafc8ffacab61f82cf3878cc7285ff1 (diff) | |
download | tcl-5b2b2aba5d8ab99e4cb03dc960f2695f0c0698a0.zip tcl-5b2b2aba5d8ab99e4cb03dc960f2695f0c0698a0.tar.gz tcl-5b2b2aba5d8ab99e4cb03dc960f2695f0c0698a0.tar.bz2 |
Merge 8.7
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 87e12ef..98ed2f5 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 |