diff options
author | dgp <dgp@users.sourceforge.net> | 2012-07-25 15:03:02 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2012-07-25 15:03:02 (GMT) |
commit | 81f96df6176c44d1f7159a0fbcb8bd4c68c0c94d (patch) | |
tree | 102f45919dfd6db170dbccb414845132439e1590 | |
parent | 4eef2a8f1f3ceb740cfca5f5b7e991fece4740e7 (diff) | |
parent | 3b6f6e4d4166d6ba00d2886efd6136f30e906f82 (diff) | |
download | tcl-81f96df6176c44d1f7159a0fbcb8bd4c68c0c94d.zip tcl-81f96df6176c44d1f7159a0fbcb8bd4c68c0c94d.tar.gz tcl-81f96df6176c44d1f7159a0fbcb8bd4c68c0c94d.tar.bz2 |
merge 8.5core_8_5_12core_8_5_12_rc
-rw-r--r-- | changes | 10 | ||||
-rw-r--r-- | library/init.tcl | 13 |
2 files changed, 14 insertions, 9 deletions
@@ -7636,9 +7636,6 @@ problems where [file *able] would return false results on Win/Samba (porter) 2012-05-17 (bug fix)[3106532] proper [switch -indexvar] values (fellows) *** POTENTIAL INCOMPATIBILITY *** -2012-06-21 (bug fix)[3362446] [registry keys] failure (nijtmans) -=> registry 1.2.2 - 2012-06-25 (bug fix)[3537605] [encoding dirs a b] error message (fellows) 2012-06-25 (bug fix)[3024359] crash when multi-thread concurrent [file system] @@ -7650,10 +7647,15 @@ and Tcl_FSMountsChanged(). (porter) 2012-07-05 (bug fix)[1189293] make "<<" redirect binary safe (porter) 2012-07-11 (bug fix)[3362446] [registry keys] failure (nijtmans) +=> registry 1.2.2 2012-07-16 (bug fix)[3544683] reentrant syscalls on BSD (cassoff,fellows) +2012-07-24 (bug fix) stop mem corruption in stacked channel events (max,porter) + +2012-07-25 (bug fix)[3546275] [auto_execok] search match [exec] (danckaert) + Many revisions to better support a Cygwin environment (nijtmans) ---- Released 8.5.12, July 20, 2011 --- See ChangeLog for details --- +--- Released 8.5.12, July 27, 2011 --- See ChangeLog for details --- diff --git a/library/init.tcl b/library/init.tcl index f6dfdba..16957b3 100644 --- a/library/init.tcl +++ b/library/init.tcl @@ -698,11 +698,14 @@ proc auto_execok name { } } - foreach dir [split $path {;}] { - # Skip already checked directories - if {[info exists checked($dir)] || ($dir eq {})} { continue } - set checked($dir) {} - foreach ext $execExtensions { + foreach ext $execExtensions { + unset -nocomplain checked + foreach dir [split $path {;}] { + # Skip already checked directories + if {[info exists checked($dir)] || ($dir eq {})} { + continue + } + set checked($dir) {} set file [file join $dir ${name}${ext}] if {[file exists $file] && ![file isdirectory $file]} { return [set auto_execs($name) [list $file]] |