summaryrefslogtreecommitdiffstats
path: root/library/safe.tcl
Commit message (Collapse)AuthorAgeFilesLines
* In ::safe::interpFindInAccessPath, ::safe::interpAddToAccessPath, add a ↵kjnash2020-07-211-1/+7
| | | | check that the interpreter belongs to the Safe Base. Add comments on why this is not done for ::safe::interpDelete.
* Adapt Safe Base for interpreter names with namespace separators. Add a test ↵kjnash2020-07-211-18/+74
| | | | and revise safe(n). Fixes bug [693851].
* Use suitable -errorcode in safe::AliasSource if file does not exist or is ↵kjnash2020-07-211-2/+5
| | | | unreadable. Fixes bug f3ba57600d.
* Remove an old fix for ~ expansion in safe::AliasGlob that is now fixed by ↵kjnash2020-07-181-2/+6
| | | | other means
* Simplify case analysis in safe::AliasGlobkjnash2020-07-181-0/+7
|
* Add explanatory comments to safe::AliasGlobkjnash2020-07-181-2/+31
|
* Bugfix argument combination -- and -directory in ::safe::AliasGlob.kjnash2020-07-181-1/+5
|
* Remove unused code for *.tm from ::safe::AliasGlob.kjnash2020-07-181-2/+1
|
* Remove code block in ::safe::AliasGlob that no longer serves a useful purpose.kjnash2020-07-181-7/+0
|
* Bugfix tests/safe.test. Harden tests safe-9.20 to safe-9.24 against ↵kjnash2020-07-151-2/+3
| | | | indeterminate order of glob matches. Audit use of glob and tcl::tm in modified tests for cases with multiple matches. Simplify test comparison patterns.
* Bugfix in library/safe.tcl - AliasGlob passes -join to glob inappropriately; ↵kjnash2020-07-151-1/+5
| | | | pass new test safe-13.7a
* Bugfix in library/safe.tcl - when deleting a safe interpreter, delete its ↵kjnash2020-07-151-0/+11
| | | | sub-interpreters cleanly; pass revised test safe-7.3
* Bugfix in library/safe.tcl - when auto_reset, also reload module data; pass ↵kjnash2020-07-131-2/+19
| | | | test safe-9.24
* Bugfix in library/safe.tcl - interpConfigure use revised value of ↵kjnash2020-07-131-0/+8
| | | | tcl::tm::list; pass tests safe-9.21, safe-9.22
* Bugfix in library/safe.tcl - only add tm roots to tcl::tm::list; pass test ↵kjnash2020-07-131-1/+14
| | | | safe-9.20
* Bugfix in library/safe.tcl - remove impossible error message in ↵kjnash2020-07-131-1/+1
| | | | safe::interpFindInAccessPath; pass test safe-9.12
* Bugfix in library/safe.tcl - when auto_reset, also reload pkgIndex.tcl data; ↵kjnash2020-07-131-0/+8
| | | | pass tests safe-9.10, safe-9.11
* Bugfix in library/safe.tcl for doreset (auto_reset); pass test safe-9.9kjnash2020-07-131-2/+2
|
* Merge 8.5 (Update opt package from 0.4.6 to 0.4.7).jan.nijtmans2019-11-281-1/+1
|\ | | | | Also fix installation of opt0.4 as done by makefile.vc, which never worked in Tcl 8.6.
| * Fix [738bc50e93]: auto_execok doesn't recognise mklink on windows. Remove ↵jan.nijtmans2015-09-301-9/+9
| | | | | | | | some unnecessary end-of-line spacing.
* | Whitespace reduction in Tcl scripts. No functional change.jan.nijtmans2015-09-011-2/+2
| |
* | fix subtle problem with safe [file] that caused Tk test failuredkf2012-05-311-7/+11
| |
* | [Bug 3529949]: Defang 'file dirname ~' etc in safe interpsdkf2012-05-281-1/+15
| |
* | [Bug 2964715]: fixes to globbing in safe interpretersdkf2012-05-171-20/+30
|\ \ | |/
| * [Bug 2964715]: fixes to globbing in safe interpretersdkf2012-05-171-17/+30
| |
* | [Bug 3445787]: Improve the compatibility of safe interpreters' version ofdkf2012-05-161-44/+29
| | | | | | 'file' with that of unsafe interpreters.
* | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ | |/ | | cause more harm than good. Purged them (except in zlib files).
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| |\ | | | | | | more harm than good. Purged them.
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | | | | more harm than good. Purged them.
| | * * library/auto.tcl: Updates to the Tcl script library to makedgp2005-07-221-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | * library/history.tcl: use of Tcl 8.4 feautures. Thanks to * library/init.tcl: Patrick Fradin for prompting on this. * library/package.tcl: [Patch 1237755]. * library/safe.tcl: * library/word.tcl:
| | * Fix [Bug 981733]; bizarre resolver brokenness strikes again!dkf2004-06-291-2/+6
| | |
| | * * library/safe.tcl (FileInAccessPath): normalize paths beforehobbs2003-07-161-2/+10
| | | | | | | | | | | | comparison. [Bug 759607] (myers)
| * | Improved handling of non-standard module path lists, empty path lists in ↵stwo2010-11-021-4/+4
| | | | | | | | | | | | particular.
| * | * library/safe.tcl (::safe::AliasGlob): Fixed another problem, theandreas_kupries2010-09-021-2/+2
| | | | | | | | | | | | | | | option -join does not stop option processing in the core builtin, so the emulation must not do that either.
| * | * library/safe.tcl (::safe::AliasGlob): Moved the commandandreas_kupries2010-09-021-2/+2
| | | | | | | | | | | | | | | extending the actual glob command with a -directory flag to when we actually have a proper untranslated path,
| * | [Bug 2923613]: Make the safer [source] handle a [return] at the end of the filedkf2009-12-301-6/+8
| | | | | | | | | | | | correctly.
| * | [Bug 2913625]: Stop information about paths from leaking through [info script]dkf2009-12-231-9/+38
| | | | | | | | | | | | and [info nameofexecutable].
| * | Upgrade to Safe Base's handling of [glob] to be more permissive with thedkf2009-12-161-25/+77
| | | | | | | | | | | | | | | feature set supported, but stricter with path management. It also now has an error pattern more like the standard [glob] command.
| * | * library/safe.tcl: Backport of the streamlined safe base fromandreas_kupries2009-12-091-872/+850
| | | | | | | | | | | | | | | * tests/safe.test: head to the 8.5 branch (See head changelog entries 2009-11-05, 2009-11-06, 2009-12-03).
| * | 2009-11-03 Andreas Kupries <andreask@activestate.com>dgp2009-11-041-2/+22
| | | | | | | | | | | | | | | | | | | | | | | | * library/safe.tcl (::safe::InterpSetConfig): [Bug 2854929]. Added code to recursively find deeper paths which may contain modules. Required to handle modules with names like 'platform::shell', which translate into 'platform/shell-X.tm', i.e arbitrarily deep subdirectories.
| * | * library/tm.tcl: Modified the handling of Tcl Modules and of theandreas_kupries2008-06-251-12/+138
| | | | | | | | | | | | | | | | | | * library/safe.tcl: Safe Base to interact nicely with each other, * library/init.tcl: enabling requiring Tcl Modules in safe interpreters. Fixes [Bug 1999119].
* | | Improved handling of non-standard module path lists, empty path lists in ↵stwo2010-11-021-4/+4
| | | | | | | | | | | | particular.
* | | * library/safe.tcl (::safe::AliasGlob): Fixed another problem, theandreas_kupries2010-09-021-2/+2
| | | | | | | | | | | | | | | option -join does not stop option processing in the core builtin, so the emulation must not do that either.
* | | * library/safe.tcl (::safe::AliasGlob): Moved the commandandreas_kupries2010-09-021-2/+2
| | | | | | | | | | | | | | | extending the actual glob command with a -directory flag to when we actually have a proper untranslated path,
* | | * library/safe.tcl (AliasGlob): [Bug 3004191]: Restore safe [glob] todkf2010-08-181-7/+5
| | | | | | | | | | | | working condition.
* | | Spacing and style fixesnijtmans2010-06-141-6/+14
| | |
* | | [Bug 2923613]: Make the safer [source] handle a [return] at the end of thedkf2009-12-301-6/+8
| | | | | | | | | | | | file correctly.
* | | [Bug 2913625]: Stop information about paths from leaking through [info script]dkf2009-12-231-17/+46
| | | | | | | | | | | | and [info nameofexecutable].
* | | Upgrade to Safe Base's handling of [glob] to be more permissive with thedkf2009-12-161-25/+76
| | | | | | | | | | | | | | | feature set supported, but stricter with path management. It also now has an error pattern more like the standard [glob] command.
* | | Fix [Bug 2906841] and a few other smaller issues.dkf2009-12-031-29/+25
| | |