Skip to content
Tcl Source Code History Of Ticket 219384
Login

History Of Ticket 219384

Artifacts Associated With Ticket 219384

  1. Ticket change [442ac98c94] (rid 116679) by nobody on 2000-10-26 05:12:05:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 6103 Bug
      Version: 8.3.1
      SubmitDate: '2000-08-09'
      LastModified: '2000-10-25'
      Severity: SER
      Status: UnAssn
      Submitter: techsupp
      OS: All
      FixedDate: '2000-10-25'
      ClosedDate: '2000-10-25'
      
      
      Name:
      Don Porter
      
      Comments:
      The source of the problem is in tclParse.c,
          in the routine Tcl_EvalTokens():
          
                      case TCL_TOKEN_COMMAND:
                          code = Tcl_EvalEx(interp, tokenPtr->start+1,
          tokenPtr->size+2,
                                  0);
                          if (code != TCL_OK) {
                             goto error;
                          }
          
          This code effectively converts all non-TCL_OK return codes
          into a TCL_ERROR return code, which is not correct.  I don't
          see an immediate fix, though, since Tcl_EvalTokens() returns
          a Tcl_Obj, not a Tcl return code.  There doesn't seem to be
          any channel for passing back the return code to the caller.
          
          This same problem is the cause of bug report #2136, and it
          may be related to other bug reports linked to #2136.
          
          BTW, the status of ticket #2136 is "Assigned".  Any way
          to find out to whom it was assigned?
      
      ReproducibleScript:
      $ cat demo1.tcl
      # FILE: demo1.tcl
      puts [info patchlevel]
      return
      
      $ cat demo2.tcl
      # FILE: demo1.tcl
      puts [info patchlevel]
      list [return]
      
      ObservedBehavior:
      $ tclsh8.0 demo1.tcl
      8.0.5
      
      $ tclsh8.0 demo2.tcl
      8.0.5
      
      $ tclsh demo1.tcl
      8.3.1
      
      $ tclsh demo2.tcl
      8.3.1
       
          while executing
      "list [return]
      "
          (file "demo2.tcl" line 3)
      
      DesiredBehavior:
      I expect the [return] command at level #0 of
      evaluation to behave the same whether it is 
      invoked directly, or as part of a command
      substitution.  Tcl 8.0.5 gets it right.
      Tcl 8.1.0 and every Tcl since gets it wrong,
      as demonstrated above using Tcl 8.3.1.
      
      
      
      
      
    4. foundin initialized to: "obsolete: 8.3.1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "inconsistent [return] at level #0"
    11. type initialized to: "Bug"
  2. Ticket change [cfd2c2a26c] (rid 113053) by dkf on 2000-11-15 21:51:51:

    1. subsystem changed to: "81. Bundled Packages"
  3. Ticket change [6488a5f163] (rid 92788) by dgp on 2001-04-05 08:04:33:

    1. subsystem changed to: "45. Parsing and Eval"
  4. Ticket change [9fc2ccad67] (rid 96698) by msofer on 2001-04-05 22:48:17:

    1. assignee changed to: "msofer"
  5. Ticket change [0c5a5166cb] (rid 114159) by msofer on 2001-08-25 07:01:17:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Seems to be fixed by the patch to bug #455151
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  6. Ticket change [19fc3137fc] (rid 122896) by msofer on 2001-08-28 18:31:06:

    1. closedate changed to: "2001-08-28T11:31:06"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      It is now apparent that this is the same bug as #455151. I'm
      tagging this one as "Duplicate".
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Duplicate"
    7. status changed to: "Closed"
    8. username: "msofer"