Overview
| Artifact ID: | 3438e6809c07a77c9d103811b2cc055f0b72cd29 |
|---|---|
| Ticket: | 2964719fffffffffffffffffffffffffffffffff
Improve handling of ::auto_path in Safe Base interpreters |
| User & Date: | kjnash on 2012-06-04 02:46:30 |
Changes
- icomment:
The attached files are patches that provide this feature as an option, and also fix four bugs that were reported as additions to bug report 2964715. The patches (one for the trunk, one for the core-8-5-branch), provide the following: 1. Bugfix - AliasGlob does "-join" itself, and so it does not need to pass "-join" to the glob command again 2. Bugfix - spurious directories in module path (test failure safe-14.1) 3. Bugfix (plus improved test 7.3) - clean up correctly after deleting a slave that has Safe Base sub-interpreters 4. Bugfix (plus new tests 19.1, 19.2) - init.tcl inappropriately adds un-tokenized directories to a slave's auto_path 5. Extra tests 17.1, 17.2: Check that first element of slave auto_path (and access path) is Tcl Library 6. New test 7.4 of pkgIndex.tcl package loading, to complement 7.1, 7.2 7. New test 7.5 of module loading, including test of ancestor directory rule 8. Optional AutoPathSync facility ("on" by default, to replicate the existing behavior) to operate with or without the previous feature of synching auto_path with the access path, and thereby dumping the entire access path into ::auto_path. Tests 7.1, 7.2 are modified so they work with or without this patch; new tests 18.1, 18.2, 18.3, 18.4, 18.5 are supplied for the no-dumping ("off") case. I work a great deal with the Safe Base, and I find the AutoPathSync "off" facility to be extremely helpful when debugging package loading problems. I hope that this feature can be included with the official Tcl release. If a further change would not be considered to change Tcl too much from its existing behavior, the AutoPathSync default can be changed from "on" to "off" by replacing (near the end of safe.tcl): variable AutoPathSync 1 with variable AutoPathSync 0 - login: "kjnash"
- mimetype: "text/plain"
- username: "kjnash"