summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--generic/tclCmdIL.c6
-rw-r--r--tests/cmdIL.test10
3 files changed, 11 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index dc9efa3..daffdd0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2006-08-09 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
+ * generic/tclCmdIL.c (Tcl_LassignObjCmd): Make the wrong#args message a
+ bit more consistent with those used elsewhere. [Bug 1534628]
+
* generic/tclDictObj.c (DictForCmd): Stop crash when attempting to
iterate over an invalid dictionary. [Bug 1531184]
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c
index e61a42d..be2f4c2 100644
--- a/generic/tclCmdIL.c
+++ b/generic/tclCmdIL.c
@@ -16,7 +16,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCmdIL.c,v 1.86 2005/12/09 14:13:00 dkf Exp $
+ * RCS: @(#) $Id: tclCmdIL.c,v 1.87 2006/08/09 14:16:03 dkf Exp $
*/
#include "tclInt.h"
@@ -2260,9 +2260,9 @@ Tcl_LassignObjCmd(dummy, interp, objc, objv)
int listObjc; /* The length of the list. */
int i;
Tcl_Obj *resPtr;
-
+
if (objc < 3) {
- Tcl_WrongNumArgs(interp, 1, objv, "list varname ?varname ...?");
+ Tcl_WrongNumArgs(interp, 1, objv, "list varName ?varName ...?");
return TCL_ERROR;
}
diff --git a/tests/cmdIL.test b/tests/cmdIL.test
index f1653b4..717370a 100644
--- a/tests/cmdIL.test
+++ b/tests/cmdIL.test
@@ -8,7 +8,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: cmdIL.test,v 1.26 2005/06/01 11:00:35 dkf Exp $
+# RCS: @(#) $Id: cmdIL.test,v 1.27 2006/08/09 14:16:03 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -440,7 +440,7 @@ test cmdIL-6.1 {lassign command syntax} -body {
testLassign
} -returnCodes 1 -cleanup {
rename testLassign {}
-} -result {wrong # args: should be "lassign list varname ?varname ...?"}
+} -result {wrong # args: should be "lassign list varName ?varName ...?"}
test cmdIL-6.2 {lassign command syntax} -body {
proc testLassign {} {
lassign x
@@ -448,7 +448,7 @@ test cmdIL-6.2 {lassign command syntax} -body {
testLassign
} -returnCodes 1 -cleanup {
rename testLassign {}
-} -result {wrong # args: should be "lassign list varname ?varname ...?"}
+} -result {wrong # args: should be "lassign list varName ?varName ...?"}
test cmdIL-6.3 {lassign command} -body {
proc testLassign {} {
set x FAIL
@@ -571,7 +571,7 @@ test cmdIL-6.13 {lassign command syntax} -body {
testLassign
} -returnCodes 1 -cleanup {
rename testLassign {}
-} -result {wrong # args: should be "lassign list varname ?varname ...?"}
+} -result {wrong # args: should be "lassign list varName ?varName ...?"}
test cmdIL-6.14 {lassign command syntax} -body {
proc testLassign {} {
set lassign lassign
@@ -580,7 +580,7 @@ test cmdIL-6.14 {lassign command syntax} -body {
testLassign
} -returnCodes 1 -cleanup {
rename testLassign {}
-} -result {wrong # args: should be "lassign list varname ?varname ...?"}
+} -result {wrong # args: should be "lassign list varName ?varName ...?"}
test cmdIL-6.15 {lassign command} -body {
proc testLassign {} {
set lassign lassign