summaryrefslogtreecommitdiffstats
path: root/library/console.tcl
diff options
context:
space:
mode:
authorhobbs <hobbs>2004-11-17 22:16:44 (GMT)
committerhobbs <hobbs>2004-11-17 22:16:44 (GMT)
commitf70b4fc9939b24b58f2a02d21621211d56da629a (patch)
tree2a73a1b103acec020aebff375889a7df238b07c8 /library/console.tcl
parent7cce8fce068d1f73088896bf9736cd53afde8b46 (diff)
downloadtk-f70b4fc9939b24b58f2a02d21621211d56da629a.zip
tk-f70b4fc9939b24b58f2a02d21621211d56da629a.tar.gz
tk-f70b4fc9939b24b58f2a02d21621211d56da629a.tar.bz2
* library/console.tcl (::tk::console::ExpandVariable): correct
array keyname expansion. [Bug 1004508] (bold)
Diffstat (limited to 'library/console.tcl')
-rw-r--r--library/console.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/console.tcl b/library/console.tcl
index 115830a..1d0ff03 100644
--- a/library/console.tcl
+++ b/library/console.tcl
@@ -4,7 +4,7 @@
# can be used by non-unix systems that do not have built-in support
# for shells.
#
-# RCS: @(#) $Id: console.tcl,v 1.25 2004/03/17 18:15:44 das Exp $
+# RCS: @(#) $Id: console.tcl,v 1.26 2004/11/17 22:16:44 hobbs Exp $
#
# Copyright (c) 1995-1997 Sun Microsystems, Inc.
# Copyright (c) 1998-2000 Ajuba Solutions.
@@ -948,7 +948,7 @@ proc ::tk::console::ExpandVariable str {
lappend vars $ary\($var\)
}
return $vars
- } else {
+ } elseif {[llength $match] == 1} {
set match $ary\($match\)
}
## Space transformation avoided for array names.