diff options
author | dkf <dkf@noemail.net> | 2004-01-17 00:38:56 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2004-01-17 00:38:56 (GMT) |
commit | 5f2e8bd40b5466ffbadc77b48809b26faab1fd92 (patch) | |
tree | d751ef9d6ce0076a3c615268677133b5a00d4393 | |
parent | 62c6b000eee8ba23c06faeba820f70d2d34dd8d0 (diff) | |
download | tcl-5f2e8bd40b5466ffbadc77b48809b26faab1fd92.zip tcl-5f2e8bd40b5466ffbadc77b48809b26faab1fd92.tar.gz tcl-5f2e8bd40b5466ffbadc77b48809b26faab1fd92.tar.bz2 |
Minor fixes and update of UNIX documentation installer
FossilOrigin-Name: 62cc8bc440e0cea1ca24723a50b1871858017352
-rw-r--r-- | generic/tclCmdIL.c | 3 | ||||
-rw-r--r-- | tests/cmdIL.test | 8 | ||||
-rw-r--r-- | unix/mkLinks | 4 |
3 files changed, 10 insertions, 5 deletions
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c index e570d56..4eee06b 100644 --- a/generic/tclCmdIL.c +++ b/generic/tclCmdIL.c @@ -15,7 +15,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.59 2004/01/17 00:28:08 dkf Exp $ + * RCS: @(#) $Id: tclCmdIL.c,v 1.60 2004/01/17 00:38:56 dkf Exp $ */ #include "tclInt.h" @@ -2054,6 +2054,7 @@ Tcl_LassignObjCmd(dummy, interp, objc, objv) * run out of values from the list object. */ Tcl_Obj **listObjv; /* The contents of the list. */ int listObjc; /* The length of the list. */ + int i; if (objc < 3) { Tcl_WrongNumArgs(interp, 1, objv, "list varname ?varname ...?"); diff --git a/tests/cmdIL.test b/tests/cmdIL.test index 94dd24f..59e17c0 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.19 2004/01/17 00:28:08 dkf Exp $ +# RCS: @(#) $Id: cmdIL.test,v 1.20 2004/01/17 00:38:57 dkf Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -422,10 +422,10 @@ test cmdIL-5.5 {lsort with list style index and sharing} -body { test cmdIL-6.1 {lassign command syntax} -body { lassign -} -code 1 -result {wrong # args: should be "lassign list varname ?varname ...?"} +} -returnCodes 1 -result {wrong # args: should be "lassign list varname ?varname ...?"} test cmdIL-6.2 {lassign command syntax} -body { lassign x -} -code 1 -result {wrong # args: should be "lassign list varname ?varname ...?"} +} -returnCodes 1 -result {wrong # args: should be "lassign list varname ?varname ...?"} test cmdIL-6.3 {lassign command} { set x FAIL list [lassign a x] $x @@ -462,7 +462,7 @@ test cmdIL-6.9 {lassign command - assignment to arrays} { test cmdIL-6.10 {lassign command - variable update error} -body { set x(x) {} lassign a x -} -code 1 -result {can't set "x": variable is array} -cleanup { +} -returnCodes 1 -result {can't set "x": variable is array} -cleanup { unset x } test cmdIL-6.11 {lassign command - variable update error} -body { diff --git a/unix/mkLinks b/unix/mkLinks index 9568218..1112183 100644 --- a/unix/mkLinks +++ b/unix/mkLinks @@ -1668,6 +1668,10 @@ if test -r lappend.n; then rm -f lappend.n.* $ZIP lappend.n fi +if test -r lassign.n; then + rm -f lassign.n.* + $ZIP lassign.n +fi if test -r library.n; then rm -f library.n.* $ZIP library.n |