Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d72fc8bfa323bb4c8cfa0b5feb75928e5e5d8ea5
Ticket: 768678ffffffffffffffffffffffffffffffffff
open "|prog >file" throws error but still executes prog
User & Date: nobody on 2003-07-09 19:19:06
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    e.g.:  set pipe [open "|echo foo >bar" r]
      rightly throws an error, because stdout is redirected in
      a pipe opened for reading.
      But: by the time it complains, the pipeline has already
      been executed (with all it's sideeffects) or is still running
      in the background and no channel is assigned, so these
      processes of the pipe cannot be identified.
    
    A solution to this would likely involve changing the 
      signature of TclCreatePipeline() (although it is 
      "unofficially exported for BLT").
       One solution could be to add an integer "flags" 
       argument, similar to  Tcl_OpenCommandChannel() 
       and pass along TCL_STDIN and/or TCL_STDOUT
       depending on whether the pipe is opened for r,w or 
       both, doing the forbid-mechanics one level deeper
       than where it is done now.
    
    
  4. foundin changed to: "obsolete: 8.4.3"
  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: "25. Channel System"
  10. title changed to:
    open "|prog >file" throws error but still executes prog
    
  11. type changed to: "Bug"