Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d2d6e37139d814c5ff4a93311c5c38d02a8f8a8b
Ticket: 513983ffffffffffffffffffffffffffffffffff
invalid calls to [test] should throw errors
User & Date: dgp on 2002-04-10 23:05:45
Changes

  1. icomment:
    
    
    File Added - 20919: patch-2002-04-10
    
    Logged In: YES 
    user_id=80530
    
    Thanks for updating the patch.  Much shorter now that
    the whitespace mess is cleaned up!
    
    There's no need to move to 2.0.3 with this patch.  No 2.0.2
    release has been made yet, so more changes to it are OK.
    
    I agree that the current code is neither fish nor fowl, and
    needs changing.  It makes no sense that [test] and
    [test foo] raise errors, but [test foo bar -badOption]
    does not.  I tend to favor your request.  If we go that
    way, we should go all the way, and return to having
    [test] return an empty string on success.  Returning 0
    doesn't really make sense unless it could also return 1
    in some other circumstance.
    
    Here's a revised patch.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"