diff options
author | kjnash <k.j.nash@usa.net> | 2020-07-23 19:04:07 (GMT) |
---|---|---|
committer | kjnash <k.j.nash@usa.net> | 2020-07-23 19:04:07 (GMT) |
commit | 50e33715bae0885fa0a16f51f1880352e8490a09 (patch) | |
tree | 343c4126ff8b01e54141fcadb8f48ba9c1ce4597 /doc/safe.n | |
parent | 976ba568c7c408fe9e94a16fd9ef73d115c28f78 (diff) | |
download | tcl-50e33715bae0885fa0a16f51f1880352e8490a09.zip tcl-50e33715bae0885fa0a16f51f1880352e8490a09.tar.gz tcl-50e33715bae0885fa0a16f51f1880352e8490a09.tar.bz2 |
For each slave, record a value of -autoPath instead of discarding it and relying on the value of ::auto_path in the slave. Clarify the distinction between the two, both in library/safe.tcl and in doc/safe.n. Amend four tests to expect the correct value. Add code to tests to examine both values where appropriate. Add three more tests for cases in which the distinction is important. Renumber and re-title tests in safe-stock86.test to correspond to those in safe.test, and add code to safe-stock86.test to set the Sync Mode.
Diffstat (limited to 'doc/safe.n')
-rw-r--r-- | doc/safe.n | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -401,14 +401,18 @@ to call \fB::safe::interpCreate\fR or \fB::safe::interpInit\fR without the option set to the empty list), which will give the safe interpreter the same access as the master interpreter to packages, modules, and autoloader files. With -"Sync Mode" off, the ::auto_path will be set to a tokenized form of the master's -::auto_path. +"Sync Mode" off, the Safe Base will set the value of \fB\-autoPath\fR to the +master's ::auto_path, and will set the slave's ::auto_path to a tokenized form +of the master's ::auto_path. .PP With "Sync Mode" off, if a value is specified for \fB\-autoPath\fR, even the empty list, in a call to \fB::safe::interpCreate\fR, \fB::safe::interpInit\fR, or \fB::safe::interpConfigure\fR, it will be tokenized and used as the safe interpreter's ::auto_path. Any directories that do not also belong to the -access path cannot be tokenized and will be silently ignored. +access path cannot be tokenized and will be silently ignored. However, the +value of \fB\-autoPath\fR will remain as specified, and will be used to +re-tokenize the slave's ::auto_path if \fB::safe::interpConfigure\fR is called +to change the value of \fB\-accessPath\fR. .PP With "Sync Mode" off, if the access path is reset to the values in the master interpreter by calling \fB::safe::interpConfigure\fR with arguments |