Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c369a926eb30c9f21e6ec93773214349e57d8f81
Ticket: 218551ffffffffffffffffffffffffffffffffff
The cd command has incorrect error message
User & Date: nobody on 2000-10-26 01:02:03
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    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
    
    
  4. foundin changed to: "obsolete: 8.0.4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "The cd command has incorrect error message"
  11. type changed to: "Bug"