diff options
author | msofer <msofer@noemail.net> | 2001-04-07 02:08:04 (GMT) |
---|---|---|
committer | msofer <msofer@noemail.net> | 2001-04-07 02:08:04 (GMT) |
commit | 223966c7053de95f2a52bc2ec0a76565e4948068 (patch) | |
tree | 27e01be7c5657ec2023a9068839d964791e9e29d /library/init.tcl | |
parent | 93d49707aa39f679fcfe9480869072dd75e2bcdd (diff) | |
download | tcl-223966c7053de95f2a52bc2ec0a76565e4948068.zip tcl-223966c7053de95f2a52bc2ec0a76565e4948068.tar.gz tcl-223966c7053de95f2a52bc2ec0a76565e4948068.tar.bz2 |
Corrected behaviour of [namespace code] (bug #219385, patch #403530)
FossilOrigin-Name: be05dac289c878a93efbe98a94e422df3cf27f48
Diffstat (limited to 'library/init.tcl')
-rw-r--r-- | library/init.tcl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/init.tcl b/library/init.tcl index 644fba3..6dcf926 100644 --- a/library/init.tcl +++ b/library/init.tcl @@ -3,7 +3,7 @@ # Default system startup file for Tcl-based applications. Defines # "unknown" procedure and auto-load facilities. # -# RCS: @(#) $Id: init.tcl,v 1.45 2001/04/06 17:57:31 dgp Exp $ +# RCS: @(#) $Id: init.tcl,v 1.46 2001/04/07 02:10:17 msofer Exp $ # # Copyright (c) 1991-1993 The Regents of the University of California. # Copyright (c) 1994-1996 Sun Microsystems, Inc. @@ -163,7 +163,7 @@ proc unknown args { # then concatenate its arguments onto the end and evaluate it. set cmd [lindex $args 0] - if {[regexp "^namespace\[ \t\n\]+inscope" $cmd] && [llength $cmd] == 4} { + if {[regexp "^:*namespace\[ \t\n\]+inscope" $cmd] && [llength $cmd] == 4} { set arglist [lrange $args 1 end] set ret [catch {uplevel 1 ::$cmd $arglist} result] if {$ret == 0} { |