diff options
author | dgp <dgp@users.sourceforge.net> | 2008-09-24 19:31:22 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2008-09-24 19:31:22 (GMT) |
commit | 320d7eee6064ca0dd8cb639bd5be69ba1540090e (patch) | |
tree | bb9142d1461d158477e06736af87cceca30ed6fc /generic | |
parent | f07ede6c19ad5eed75e1dcbc9ffed8322eed5c3b (diff) | |
download | tcl-320d7eee6064ca0dd8cb639bd5be69ba1540090e.zip tcl-320d7eee6064ca0dd8cb639bd5be69ba1540090e.tar.gz tcl-320d7eee6064ca0dd8cb639bd5be69ba1540090e.tar.bz2 |
TIP #323 IMPLEMENTATION (partial)
* doc/file.n: Revise [file delete] and [file mkdir] to
* generic/tclCmdAH.c: accept zero "pathname" arguments (the
* generic/tclFCmd.c: no-op case).
* tests/cmdAH.test:
* tests/fCmd.test:
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclCmdAH.c | 6 | ||||
-rw-r--r-- | generic/tclFCmd.c | 8 |
2 files changed, 2 insertions, 12 deletions
diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c index 80aadeb..19a743b 100644 --- a/generic/tclCmdAH.c +++ b/generic/tclCmdAH.c @@ -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: tclCmdAH.c,v 1.104 2008/09/01 12:28:08 msofer Exp $ + * RCS: @(#) $Id: tclCmdAH.c,v 1.105 2008/09/24 19:31:28 dgp Exp $ */ #include "tclInt.h" @@ -1239,10 +1239,6 @@ Tcl_FileObjCmd( GetTypeFromMode((unsigned short) buf.st_mode), -1)); return TCL_OK; case FCMD_MKDIR: - if (objc < 3) { - Tcl_WrongNumArgs(interp, 2, objv, "name ?name ...?"); - return TCL_ERROR; - } return TclFileMakeDirsCmd(interp, objc, objv); case FCMD_NATIVENAME: { const char *fileName; diff --git a/generic/tclFCmd.c b/generic/tclFCmd.c index dc13ef4..d385f8e 100644 --- a/generic/tclFCmd.c +++ b/generic/tclFCmd.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclFCmd.c,v 1.46 2008/07/21 14:42:57 patthoyts Exp $ + * RCS: @(#) $Id: tclFCmd.c,v 1.47 2008/09/24 19:31:29 dgp Exp $ */ #include "tclInt.h" @@ -351,12 +351,6 @@ TclFileDeleteCmd( return TCL_ERROR; } i += 2; - if ((objc - i) < 1) { - Tcl_AppendResult(interp, "wrong # args: should be \"", - TclGetString(objv[0]), " ", TclGetString(objv[1]), - " ?-option value ...? file ?file ...?\"", NULL); - return TCL_ERROR; - } errfile = NULL; result = TCL_OK; |