Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 486acad5b2df78bdee0118da98aa6ed9f308c6b6
Ticket: 218993ffffffffffffffffffffffffffffffffff
return -code error blurb behaves wrong in auto loaded file
User & Date: nobody on 2000-10-26 01:09:03
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 3707 Bug
    Version: 8.0.5
    SubmitDate: '1999-11-29'
    LastModified: '2000-01-31'
    Severity: MED
    Status: Released
    Submitter: techsupp
    ChangedBy: ericm
    OS: Linux
    OSVersion: Linux Gauss 2.0.31 #4 Wed Aug 26 20:26:05 MET DST 1998 i586
    Machine: P75
    FixedDate: '2000-01-31'
    FixedInVersion: 8.1.1
    ClosedDate: '2000-10-25'
    
    
    Name:
    Harald Kirsch
    
    Comments:
    The error does not show up on 8.0.4.
    
    ReproducibleScript:
    To reproduce the error, two scripts are necessary.
    ---------------------------------------------
    ## This file must be called `bla'
    package provide bug 1.0
    proc bug {} {
      return -code error arrrgh
    }
    --------------------------------------------
    ## This file can have any name, say `bli'
    lappend auto_path .
    pkg_mkIndex . bla
    
    package require bug
    
    if {[catch {bug} err]} {
      puts "This is  [info patchlevel]."
      puts "The `$err' should not have been printed two lines above."
    } else {
      puts "This should not happen"
    }
    ------------------------------------------
    Store both files in the same directory and run the latter in tclsh from that directory.
    
    ObservedBehavior:
    The output on my machine looks like:
    
    ... arrrgh
    This is  8.0.5.
    The `arrrgh' should not have been printed two lines above.
    
    Obviously, the first `arrrgh' is wrong. The return command in `bla' produces some output on the
    console.
    
    DesiredBehavior:
    The return command is not supposed to produce output on the console.
    
    
    
    This bug does not appear in 8.3.  I cannot say with any high degree of certainty precisely when it was fixed.
    
    - eric
    
    -- 01/31/2000 ericm
    
    
    
  4. foundin changed to: "final: 8.0.5"
  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: "56. LibTomMath"
  10. title changed to:
    return -code error blurb   behaves wrong in auto loaded file
    
  11. type changed to: "Bug"