diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-03-07 08:31:44 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-03-07 08:31:44 (GMT) |
commit | efadd7170eafc8ffacab61f82cf3878cc7285ff1 (patch) | |
tree | 99d87a4b0c5e77209cb0eb3c1f462d6bcd5a0f3c /library/init.tcl | |
parent | 3e2014216af5a54eec83355257ed2f95f9d8bf41 (diff) | |
parent | 65baf6c706d7cfa12cfbc06610f7e9a51c5c81e8 (diff) | |
download | tcl-efadd7170eafc8ffacab61f82cf3878cc7285ff1.zip tcl-efadd7170eafc8ffacab61f82cf3878cc7285ff1.tar.gz tcl-efadd7170eafc8ffacab61f82cf3878cc7285ff1.tar.bz2 |
Merge 8.6. Remove unneeded code from init.tcl
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 |