Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1eeda5e06d3a7b4196af334074ae7a8f13d48f3d
Ticket: 910732ffffffffffffffffffffffffffffffffff
[puts] returns obsolete error message
User & Date: johnseal on 2004-03-05 20:16:16
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    In Tcl 8.4.5 on Mac OS X 10.3.2:
    
    % puts a b c
    bad argument "c": should be "nonewline"
    
    Why does [puts] complain about "c", instead of "a"? 
    For [puts] with three arguments, only the first *must*
    be -nonewline.
    
    Don Porter says:
    
    "Long ago, while the earth was still cooling, in Tcl 6,
    the [puts] command had a different syntax:
    
        puts ?channel? string ?nonewline?
    
    Parts of Tcl were still using this internally as late
    as Tcl 8.3.
    The [puts] command still recognizes the syntax, and
    produces an error message for it, though that should go
    away at the next major revision."
    
    That syntax is no longer documented, but apparently
    still permitted.  The error message should be changed
    to agree with the documented syntax.
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "johnseal"
  9. subsystem changed to: "24. Channel Commands"
  10. title changed to: "[puts] returns obsolete error message"
  11. type changed to: "Bug"