diff options
author | dgp <dgp@users.sourceforge.net> | 2013-12-30 16:36:12 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2013-12-30 16:36:12 (GMT) |
commit | c53d98725fb23b759e0fa9b4cff521758ab054ef (patch) | |
tree | fab9b12d8f685f94568b09e610301f83938c5166 /library/init.tcl | |
parent | 21068ce2b708810c474f5cc2f6c11438114ad1d6 (diff) | |
parent | 3b06f70775be10c7547c05c27e55d4ef0a65ee0c (diff) | |
download | tcl-c53d98725fb23b759e0fa9b4cff521758ab054ef.zip tcl-c53d98725fb23b759e0fa9b4cff521758ab054ef.tar.gz tcl-c53d98725fb23b759e0fa9b4cff521758ab054ef.tar.bz2 |
merge trunkdkf_asm_crash_20131022
Diffstat (limited to 'library/init.tcl')
-rw-r--r-- | library/init.tcl | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/library/init.tcl b/library/init.tcl index 1ca6413..f63eedf 100644 --- a/library/init.tcl +++ b/library/init.tcl @@ -130,9 +130,9 @@ if {(![interp issafe]) && ($tcl_platform(platform) eq "windows")} { switch -- $u { COMSPEC - PATH { - if {![info exists env($u)]} { - set env($u) $env($p) - } + 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 \ @@ -142,11 +142,7 @@ if {(![interp issafe]) && ($tcl_platform(platform) eq "windows")} { } } if {![info exists env(COMSPEC)]} { - if {$tcl_platform(os) eq "Windows NT"} { - set env(COMSPEC) cmd.exe - } else { - set env(COMSPEC) command.com - } + set env(COMSPEC) cmd.exe } } InitWinEnv |