Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-16
23:26 • Ticket [218551ffff] The cd command has incorrect error message status still ... artifact: 0944d258ce user: dgp
2000-10-26
08:24 • Closed ticket [218551ffff]. artifact: a13fa2946d user: welch
01:02 • New ticket [218551ffff]. artifact: c369a926eb user: nobody

The cd command has incorrect error message

Closed / Fixed218551ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:02:03
OriginalBugID: 1010 Bug
Version: 8.0.4
SubmitDate: '1998-12-22'
LastModified: '1998-12-22'
Severity: LOW
Status: Released
Submitter: welch
ChangedBy: rjohnson
OS: Solaris
Machine: Other
FixedDate: '1998-12-22'
FixedInVersion: 8.0.5
ClosedDate: '2000-10-25'


Name:
mo

ReproducibleScript:
The error message on the cd command should have ? marks around the dir argument.

DesiredBehavior:
when one types "cd one two" the command should return
the first argument to the proc with question marks around it.

(good) wrong # args: should be "cd ?dirName?"
(bad)  wrong # args: should be "cd dirName"

Patch:
*** tclCmdAH.c  Mon Sep 14 13:39:57 1998
--- tmp Tue Dec 22 03:25:44 1998
***************
*** 306,312 ****
      int result;

      if (objc > 2) {
!       Tcl_WrongNumArgs(interp, 1, objv, "dirName");
        return TCL_ERROR;
      }

--- 306,312 ----
      int result;

      if (objc > 2) {
!       Tcl_WrongNumArgs(interp, 1, objv, "?dirName?");
        return TCL_ERROR;
      }

PatchFiles:
tcl8.0.4/generic/tclCmdAH.c



This fix has already be added to tcl8.1b1 and jacl so it should really
be in 8.0.5 too.

thanks
mo dejong
dejong at cs.umn.edu
welch Closed ticket [218551ffff]. [History diff]2000-10-26 08:24:14
dgp Ticket [218551ffff]: 3 changes [History diff]2001-04-16 23:26:27
Log in (anonymous is fine) to add a comment.