Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e31774ac9a15f50d685772d2df6007f28aec9e25
Ticket: 1106853fffffffffffffffffffffffffffffffff
On Linux, exec >@channel may give incorrect error
User & Date: nobody on 2005-01-21 17:33:34
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    If I create a channel in C code with Tcl_CreateChannel
    (passing in TCL_WRITABLE) then try to output to it
    using exec, like so:
    
    % exec ls >@channel
    
    I get the error message (under Linux):
    
    channel "foo" wasn't opened for writing
    
    The actual cause of the error is that there's no file
    handle associated with my channel. I don't mind that
    this doesn't work, but the error message is confusing,
    especially since the channel patently is open for
    writing, since:
    
    % puts channel "some string"
    
    works fine.
    
    This is with Tcl 8.4.7.
    
  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: "nobody"
  9. subsystem changed to: "25. Channel System"
  10. title changed to: "On Linux, exec >@channel may give incorrect error"
  11. type changed to: "Bug"