Tcl Source Code

Ticket Change Details
Login
Overview

Artifact ID: 11203e8a83616d09e860f745f3d23a5a3cc504e53a780b33091fc284dfc773c7
Ticket: 6de8494984e49b052d3ad82b8cd7e900b67274b3
Tcl_CreateCommandChannel() documentation bug
User & Date: ralfixx 2019-08-14 13:18:01
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    [https://www.tcl.tk/man/tcl/TclLib/OpenFileChnl.htm#M7]
    states for Tcl_OpenCommandChannel():
    
    <pre>
      If an error occurs while opening the channel, [...] In addition, 
      Tcl_OpenCommandChannel leaves an error message in the interpreter's
      result if interp is not NULL. 
    </pre>
    
    The code in generic/TclPipe.c however states that interp cannot be NULL:
    
    <pre>
      Tcl_Channel
      Tcl_OpenCommandChannel(
          Tcl_Interp *interp, /* Interpreter for error reporting. Can NOT be NULL. */
    </pre>
    
    And indeed, calling Tcl_OpenCommandChannel(NULL, ...) dumps core in case of an error when opening the pipeline (e.g. command not found).
    
    => Documentation should be adjusted: "interp cannot be NULL".
    
  5. foundin changed to: "8.6.9"
  6. is_private changed to: "0"
  7. login: "ralfixx"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "1d3c95db24e116878d6afed7cf890a89a0effe62"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "ralfixx"
  14. subsystem changed to: "24. Channel Commands"
  15. title changed to: "Tcl_CreateCommandChannel() documentation bug"
  16. type changed to: "Bug"