Overview
| Artifact ID: | 74e40af66af11846b65df34752deca60c49a836f |
|---|---|
| Ticket: | 219161ffffffffffffffffffffffffffffffffff
Merging stdout and stderr |
| User & Date: | nobody on 2000-10-26 05:02:30 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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 - foundin changed to: "obsolete: 8.0.4"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "60. NRE and coroutines"
- title changed to: "Merging stdout and stderr"
- type changed to: "Bug"