summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2001-04-07 02:08:05 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2001-04-07 02:08:05 (GMT)
commitf4aae297ab93a93609f6e467d30b0e022440daab (patch)
tree27e01be7c5657ec2023a9068839d964791e9e29d /library
parent9777db5094c42eabbad41300b9a61e15b1998aae (diff)
downloadtcl-f4aae297ab93a93609f6e467d30b0e022440daab.zip
tcl-f4aae297ab93a93609f6e467d30b0e022440daab.tar.gz
tcl-f4aae297ab93a93609f6e467d30b0e022440daab.tar.bz2
Corrected behaviour of [namespace code] (bug #219385, patch #403530)
Diffstat (limited to 'library')
-rw-r--r--library/init.tcl4
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} {