Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 222d562c6f161e230028b9ca8a2062281d2217da
Ticket: 577015ffffffffffffffffffffffffffffffffff
catch {expr something} is spotty
User & Date: nobody on 2002-07-03 15:36:00
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Version: 8.3.4
    OS: Windows NT 4.0 SP 6 and Windows 2000
    
    Problem:
    When using expr within a catch statement, sometimes an 
    error is still thrown. For example:
    
    catch {expr NA}
    -> Throws an error
    
    catch {expr NA} cerr
    -> Returns 1
    
    catch {expr}
    -> Throws an error
    
    catch {expr} cerr
    -> Returns 1
    
    catch {expr this should work}
    -> Returns 1
    
    catch {expr 5/0}
    -> Returns 1.
    
    Expected behavior:
    Should return 1 on any error condition.
    
    
  4. foundin changed to: "obsolete: 8.3.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: "16. Commands A-H"
  10. title changed to: "catch {expr something} is spotty"
  11. type changed to: "Bug"