diff options
| author | dgp <dgp@users.sourceforge.net> | 2016-09-09 16:07:25 (GMT) |
|---|---|---|
| committer | dgp <dgp@users.sourceforge.net> | 2016-09-09 16:07:25 (GMT) |
| commit | bcc2a1dc0bbfa47921b9dc71b14b2e221636a6a9 (patch) | |
| tree | 67b17c2ecae4c5d8f60c2b5b369b65a8ce9e9349 /library | |
| parent | c149f8727514bf6a078b16a741714212f057d54b (diff) | |
| parent | f26a4a0948cbd769519cf1e79ea027511051b2bd (diff) | |
| download | tcl-bug_3418547.zip tcl-bug_3418547.tar.gz tcl-bug_3418547.tar.bz2 | |
merge trunkbug_3418547
Diffstat (limited to 'library')
| -rw-r--r-- | library/auto.tcl | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/library/auto.tcl b/library/auto.tcl index 02edcc4..97ea8af 100644 --- a/library/auto.tcl +++ b/library/auto.tcl @@ -122,11 +122,9 @@ proc tcl_findLibrary {basename version patch initScript enVarName varName} { # uniquify $dirs in order array set seen {} foreach i $dirs { - # Take note that the [file normalize] below has been noted to cause - # difficulties for the freewrap utility. See Bug 1072136. Until - # freewrap resolves the matter, one might work around the problem by - # disabling that branch. + # Make sure $i is unique under normalization. Avoid repeated [source]. if {[interp issafe]} { + # Safe interps have no [file normalize]. set norm $i } else { set norm [file normalize $i] @@ -135,10 +133,7 @@ proc tcl_findLibrary {basename version patch initScript enVarName varName} { continue } set seen($norm) {} - lappend uniqdirs $i - } - set dirs $uniqdirs - foreach i $dirs { + set the_library $i set file [file join $i $initScript] |
