Tcl Source Code

Ticket Change Details
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.
Overview

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

  1. Change assignee to "nobody"
  2. Change closer to "nobody"
  3. Change cmimetype to "text/x-fossil-wiki"
  4. Change comment to:

    https://www.tcl.tk/man/tcl/TclLib/OpenFileChnl.htm#M7 states for Tcl_OpenCommandChannel():

      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. 
    

    The code in generic/TclPipe.c however states that interp cannot be NULL:

      Tcl_Channel
      Tcl_OpenCommandChannel(
          Tcl_Interp *interp, /* Interpreter for error reporting. Can NOT be NULL. */
    

    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. Change foundin to "8.6.9"
  6. Change is_private to "0"
  7. Change login to "ralfixx"
  8. Change priority to "5 Medium"
  9. Change private_contact to "1d3c95db24e116878d6afed7cf890a89a0effe62"
  10. Change resolution to "None"
  11. Change severity to "Minor"
  12. Change status to "Open"
  13. Change submitter to "ralfixx"
  14. Change subsystem to "24. Channel Commands"
  15. Change title to "Tcl_CreateCommandChannel() documentation bug"
  16. Change type to "Bug"