Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 74e40af66af11846b65df34752deca60c49a836f
Ticket: 219161ffffffffffffffffffffffffffffffffff
Merging stdout and stderr
User & Date: nobody on 2000-10-26 05:02:30
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1470 RFE
    Version: 8.0.4
    SubmitDate: '1999-03-08'
    LastModified: '2000-04-26'
    Severity: SER
    Status: Assigned
    Submitter: pat
    ChangedBy: hobbs
    RelatedBugIDs: 682 582
    OS: All
    FixedDate: '2000-10-25'
    FixedInVersion: NA
    ClosedDate: '2000-10-25'
    
    
    Name:  Alexandre FERRIEUX
    
    DesiredBehavior:
    It is well known that it's not trivial to merge the stdout and stderr of
    a child on Windows. The Debated patch by Ian Taylor dragged the existing
    >@ redirection semantics the wring way (i.e. patching WIndows to mimic
    UNIX, while for once the UNIX behavior is wrong !!!). Suggestions have
    been made to use "2>&1" instead, which at least doesn't violate the rest
    of the >@ semantics. The problem with this is that it's a Bourne
    shell-based notation, while the rest of [exec/open] uses a csh-notation.
    In particular , ">&" already exists, which would make "2>&1" at least
    ambiguous.
        
    Hence, I suggest a syntax extension that is more in the spirit of the
    existing notation, while protecting the semantics: ">&@outpipe".
    Explanation: ">&@x" already exists, meaning "redirect both stdout and
    err to the previously opened descriptor found at the low level of the
    Tcl channel 'x'.
    Notice that Ian Taylor's patch for Windows and the current (buggy)
    semantics for Unix both propose to use "stdout" here as "x". Instead, I
    propose to use a new string "outpipe", which would be recognized
    internally as 'the output pipe being created'.
    
    
    See 682 for longer explanation of odd behavior.  582 is the "incorrect"
    patch that Ian Taylor proposed. 
    -- 04/26/2000 hobbs
    
  4. foundin changed to: "obsolete: 8.0.4"
  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: "60. NRE and coroutines"
  10. title changed to: "Merging stdout and stderr"
  11. type changed to: "Bug"