summaryrefslogtreecommitdiffstats
path: root/library/safe.tcl
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Undo Jan's needless vandalism.dkf2009-11-191-3/+3
|
* Eliminate "then" keywordnijtmans2009-11-181-15/+15
|
* * library/safe.tcl (::safe::Setup): Added documentation of theandreas_kupries2009-11-061-31/+38
| | | | | | contents of the state array. Also killed the 'InterpState' procedure with its upleveled variable/upvar combination, and replaced all uses with 'namespace upvar'.
* * library/safe.tcl: A series of patches which bring the SafeBaseandreas_kupries2009-11-051-15/+29
| | | | | | | up to date with code guidelines, Tcl's features, also eliminating a number of inefficiencies along the way. (11) Fixed bug 2854929. Recurse into all subdirs under all TM root dirs and put them on the access path.
* * library/safe.tcl: A series of patches which bring the SafeBaseandreas_kupries2009-11-051-64/+56
| | | | | | | | | | up to date with code guidelines, Tcl's features, also eliminating a number of inefficiencies along the way. (10) Misc. cleanup. Inlined IsInterp into CheckInterp, its only user. Consistent 'return -code error' for error reporting. Updated to use modern features (lassign, in/ni, dicts). The latter are used to keep a reverse path -> token map and quicker check of existence.
* * library/safe.tcl: A series of patches which bring the SafeBaseandreas_kupries2009-11-051-14/+29
| | | | | | | up to date with code guidelines, Tcl's features, also eliminating a number of inefficiencies along the way. (9) Changed the log command setup so that logging is compiled out completely when disabled (default).
* * library/safe.tcl: A series of patches which bring the SafeBaseandreas_kupries2009-11-051-101/+65
| | | | | | | | | up to date with code guidelines, Tcl's features, also eliminating a number of inefficiencies along the way. (8) Converted the path token system to cache normalized paths and path <-> token conversions. Removed more procedures not used any longer. Removed the test cases 4.3 and 4.4 from safe.test. They were testing the now deleted command "InterpStateName".
* * library/safe.tcl: A series of patches which bring the SafeBaseandreas_kupries2009-11-051-46/+7
| | | | | | | | up to date with code guidelines, Tcl's features, also eliminating a number of inefficiencies along the way. (7) Replaced the remaining uses of 'Set' and others outside of the path/token handling, and deleted a number of procedures related to state array access which are not used any longer.
* * library/safe.tcl: A series of patches which bring the SafeBaseandreas_kupries2009-11-051-48/+80
| | | | | | | up to date with code guidelines, Tcl's features, also eliminating a number of inefficiencies along the way. (6) Replaced several uses of 'Set' with calls to the new procedure 'InterpState' and direct access to the per-slave state array.
* * library/safe.tcl: A series of patches which bring the SafeBaseandreas_kupries2009-11-051-8/+14
| | | | | | | up to date with code guidelines, Tcl's features, also eliminating a number of inefficiencies along the way. (5) Moved the argument parsing setup into a procedure called when the code is loaded. Easier management of temporary data.
* * library/safe.tcl: A series of patches which bring the SafeBaseandreas_kupries2009-11-051-45/+45
| | | | | | | | up to date with code guidelines, Tcl's features, also eliminating a number of inefficiencies along the way. (4) Moved the multiple namespace eval's around. Command export at the top, everything else (var decls, argument parsing setup) at the bottom.
* * library/safe.tcl: A series of patches which bring the SafeBaseandreas_kupries2009-11-051-831/+831
| | | | | | | up to date with code guidelines, Tcl's features, also eliminating a number of inefficiencies along the way. (3) Reindent the code. Just lots of whitespace changes. Functionality unchanged.
* * library/safe.tcl: A series of patches which bring the SafeBaseandreas_kupries2009-11-051-2/+4
| | | | | | | | up to date with code guidelines, Tcl's features, also eliminating a number of inefficiencies along the way. (2) Move the procedures out of the namespace eval. Keep their locations. IOW, break the namespace eval apart into small sectionsnot covering the procedure definitions.
* * library/safe.tcl: A series of patches which bring the SafeBaseandreas_kupries2009-11-051-39/+39
| | | | | | up to date with code guidelines, Tcl's features, also eliminating a number of inefficiencies along the way. (1) Change all procedure names to be fully qualified.
* * library/safe.tcl (AliasGlob): Fixed conversion of catch toandreas_kupries2009-10-051-1/+3
| | | | | | try/finally, it had an 'on ok msg' branch missing, causing a silent error immediately, and bogus glob results, breaking search for Tcl modules.
* Use [try] to replace obscurer uses of [catch].dkf2009-07-261-222/+230
|
* * library/tm.tcl: Modified the handling of Tcl Modules and of theandreas_kupries2008-06-251-7/+133
| | | | | | * library/safe.tcl: Safe Base to interact nicely with each other, * library/init.tcl: enabling requiring Tcl Modules in safe * tests/safe.test: interpreters. Fixes [Bug 1999119].
* * doc/ParseCmd.3, doc/Tcl.n, doc/eval.n, doc/exec.n:hobbs2006-11-031-8/+8
| | | | | | | | | | | | | | | | | | * doc/fconfigure.n, doc/interp.n, doc/unknown.n: * library/auto.tcl, library/init.tcl, library/package.tcl: * library/safe.tcl, library/tm.tcl, library/msgcat/msgcat.tcl: * tests/all.tcl, tests/basic.test, tests/cmdInfo.test: * tests/compile.test, tests/encoding.test, tests/execute.test: * tests/fCmd.test, tests/http.test, tests/init.test: * tests/interp.test, tests/io.test, tests/ioUtil.test: * tests/iogt.test, tests/namespace-old.test, tests/namespace.test: * tests/parse.test, tests/pkg.test, tests/pkgMkIndex.test: * tests/proc.test, tests/reg.test, tests/trace.test: * tests/upvar.test, tests/winConsole.test, tests/winFCmd.test: * tools/tclZIC.tcl: * generic/tclParse.c (Tcl_ParseCommand): Replace {expand} with {*} officially (TIP #293). Leave -DALLOW_EXPAND=0|1 option to keep {expand} syntax for transition users. [Bug 1589629]
* * library/auto.tcl: Updates to the Tcl script library to makedgp2005-07-231-11/+10
| | | | | | | | * library/history.tcl: use of Tcl 8.4 features. Forward port of * library/init.tcl: appropriate portions of [Patch 1237755]. * library/package.tcl: * library/safe.tcl: * library/word.tcl:
* Fix [Bug 981733]; bizarre resolver brokenness strikes again!dkf2004-06-291-2/+6
|
* Removed support for Mac OS Classic platform [Patch 918142]das2004-03-171-15/+1
|
* * doc/ParseCmd.3: Implementation of TIP 157. Adds recognitiondgp2003-11-141-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/Tcl.n: of the new leading {expand} syntax on words. * generic/tcl.h: Parses such words as the new Tcl_Token type * generic/tclBasic.c: TCL_TOKEN_EXPAND_WORD. Updated Tcl_EvalEx * generic/tclCompile.c: and the bytecode compiler/execution engine * generic/tclCompile.h: to recognize the new token type. New opcodes * generic/tclExecute.c: INST_LIST_VERIFY and INST_INVOKE_EXP and a new * generic/tclParse.c: operand type OPERAND_ULIST1 are defined. Docs * generic/tclTest.c: and tests are included. * tests/basic.test: * tests/compile.test: * tests/parse.test: * library/auto.tcl: Replaced several [eval]s used to perform * library/package.tcl: argument expansion with the new syntax. * library/safe.tcl: In the test files lindex.test and lset.test, * tests/cmdInfo.test: replaced use of [eval] to force direct * tests/encoding.test: string evaluation with use of [testevalex] * tests/execute.test: which more directly and robustly serves the * tests/fCmd.test: same purpose. * tests/http.test: * tests/init.test: * tests/interp.test: * tests/io.test: * tests/ioUtil.test: * tests/iogt.test: * tests/lindex.test: * tests/lset.test: * tests/namespace-old.test: * tests/namespace.test: * tests/pkg.test: * tests/pkgMkIndex.test: * tests/proc.test: * tests/reg.test: * tests/trace.test: * tests/upvar.test: * tests/winConsole.test: * tests/winFCmd.test:
* * library/safe.tcl (FileInAccessPath): normalize paths beforehobbs2003-07-161-2/+10
| | | | comparison. [Bug 759607] (myers)
* * library/auto.tcl: Replaced [regexp] and [regsub] withdgp2003-03-191-2/+2
| | | | | | | | | | | | | | | * library/history.tcl: [string map] where possible. Thanks * library/ldAout.tcl: to David Welton. [Bugs 667456,667558] * library/safe.tcl: Bumped to http 2.4.3, opt 0.4.5, and * library/http/http.tcl: tcltest 2.2.3. * library/http/pkgIndex.tcl: * library/opt/optparse.tcl: * library/opt/pkgIndex.tcl: * library/tcltest/tcltest.tcl: * library/tcltest/pkgIndex.tcl: * tools/genStubs.tcl: * tools/tcltk-man2html.tcl: * unix/mkLinks.tcl:
* code cleanup of eval and string comp usehobbs2003-02-081-7/+7
|
* * library/safe.tcl (CheckFileName): removed the limit onhobbs2002-02-221-16/+6
| | | | | | sourceable file names (was only *.tcl or tclIndex files with no more than one dot and 14 chars). There is enough internal protection in a safe interpreter already. Fixes [Tk Bug #521560].
* [glob] uses -directory instead of unsafe [file join] to stop problemsdkf2000-11-241-2/+2
| | | | with some directory names. Fixes Bug #123313 in Tcl.
* 1999-08-18 Jeff Hobbs <hobbs@scriptics.com>hobbs1999-08-191-171/+162
| | | | | | | | | | | | | * library/auto.tcl: * library/init.tcl: * library/ldAout.tcl: * library/package.tcl: * library/safe.tcl: * library/word.tcl: * library/http2.1/http.tcl: * library/msgcat1.0/msgcat.tcl: updated libraries to better Tcl style guide (no more string comparisons with == or !=, spacing changes).
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-2/+46
|
* Removed lint (thanks, procheck!)welch1998-11-111-7/+1
|
* Replaced SCCS strings, fixed binary filescore_8_0_3stanton1998-09-141-1/+1
|
* plugin updateswelch1998-06-271-4/+4
|
* Initial revisionrjohnson1998-03-261-0/+893