summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--generic/tclCmdAH.c4
-rw-r--r--tests/fCmd.test6
3 files changed, 11 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 72caad2..0af89ff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-07-02 Vince Darley <vincentdarley@users.sourceforge.net>
+
+ * tests/fCmd.test:
+ * generic/tclCmdAH.c: clearer error msgs for 'file link',
+ as per the man page.
+
2002-07-01 Joe English <jenglish@users.sourceforge.net>
* doc/Access.3:
diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c
index bc6b655..2992367 100644
--- a/generic/tclCmdAH.c
+++ b/generic/tclCmdAH.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCmdAH.c,v 1.26 2002/06/21 14:22:28 vincentdarley Exp $
+ * RCS: @(#) $Id: tclCmdAH.c,v 1.27 2002/07/02 12:16:05 vincentdarley Exp $
*/
#include "tclInt.h"
@@ -961,7 +961,7 @@ Tcl_FileObjCmd(dummy, interp, objc, objv)
if (objc < 3 || objc > 5) {
Tcl_WrongNumArgs(interp, 2, objv,
- "?-linktype? source ?target?");
+ "?-linktype? linkname ?target?");
return TCL_ERROR;
}
diff --git a/tests/fCmd.test b/tests/fCmd.test
index 19fbb07..8891f40 100644
--- a/tests/fCmd.test
+++ b/tests/fCmd.test
@@ -10,7 +10,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: fCmd.test,v 1.17 2002/07/01 14:35:10 dgp Exp $
+# RCS: @(#) $Id: fCmd.test,v 1.18 2002/07/02 12:16:05 vincentdarley Exp $
#
if {[lsearch [namespace children] ::tcltest] == -1} {
@@ -2181,11 +2181,11 @@ if {[string equal $tcl_platform(platform) "windows"]} {
test fCmd-28.1 {file link} {hasLinks} {
list [catch {file link} msg] $msg
-} {1 {wrong # args: should be "file link ?-linktype? source ?target?"}}
+} {1 {wrong # args: should be "file link ?-linktype? linkname ?target?"}}
test fCmd-28.2 {file link} {hasLinks} {
list [catch {file link a b c d} msg] $msg
-} {1 {wrong # args: should be "file link ?-linktype? source ?target?"}}
+} {1 {wrong # args: should be "file link ?-linktype? linkname ?target?"}}
test fCmd-28.3 {file link} {hasLinks} {
list [catch {file link abc b c} msg] $msg