summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-05-24 19:13:34 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-05-24 19:13:34 (GMT)
commitf4ce59d358e3993aa45141bf6f1c37c1166ae2ec (patch)
treef7a4fd5653f062aba04696fd3b104bdd9c1572d9 /library
parentbb17f9d11c315a654f2e7b46df81202e61e18a50 (diff)
downloadtcl-f4ce59d358e3993aa45141bf6f1c37c1166ae2ec.zip
tcl-f4ce59d358e3993aa45141bf6f1c37c1166ae2ec.tar.gz
tcl-f4ce59d358e3993aa45141bf6f1c37c1166ae2ec.tar.bz2
* library/init.tcl: Updated [unknown] to be sure the [return]
* tests/init.test: options from an auto-loaded command are seen correctly by the caller.
Diffstat (limited to 'library')
-rw-r--r--library/init.tcl5
1 files changed, 3 insertions, 2 deletions
diff --git a/library/init.tcl b/library/init.tcl
index 4e167af..0623488 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.75 2005/05/10 18:34:54 kennykb Exp $
+# RCS: @(#) $Id: init.tcl,v 1.76 2005/05/24 19:13:45 dgp Exp $
#
# Copyright (c) 1991-1993 The Regents of the University of California.
# Copyright (c) 1994-1996 Sun Microsystems, Inc.
@@ -293,7 +293,8 @@ proc unknown args {
return -code error -errorcode $errorCode \
-errorinfo $einfo $msg
} else {
- return -code $code $msg
+ dict incr opts -level
+ return -options $opts $msg
}
}
}