summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-04-28 05:31:53 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-04-28 05:31:53 (GMT)
commit92091ec07127569dc66df5e7e9f41d6994e08ab8 (patch)
treebf229a4b6cbba8307fecb0cabe2e62f010386100 /library
parent7842c9275791d34656b40014d43e8177a94010ad (diff)
downloadtcl-92091ec07127569dc66df5e7e9f41d6994e08ab8.zip
tcl-92091ec07127569dc66df5e7e9f41d6994e08ab8.tar.gz
tcl-92091ec07127569dc66df5e7e9f41d6994e08ab8.tar.bz2
* library/init.tcl: Corrected flaw in interactive command
* tests/main.test: auto-completion. [Bug 1191409].
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 82540b5..ff845fc 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.73 2005/04/25 17:07:37 dgp Exp $
+# RCS: @(#) $Id: init.tcl,v 1.74 2005/04/28 05:32:01 dgp Exp $
#
# Copyright (c) 1991-1993 The Regents of the University of California.
# Copyright (c) 1994-1996 Sun Microsystems, Inc.
@@ -342,7 +342,7 @@ proc unknown args {
}
}
if {[llength $cmds] == 1} {
- return [uplevel 1 [lreplace $args 0 0 $cmds]]
+ return [uplevel 1 [lreplace $args 0 0 [lindex $cmds 0]]]
}
if {[llength $cmds]} {
if {$name eq ""} {