Tcl Source Code

View Ticket
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.
Ticket UUID: 1476191
Title: exec function ignores stderr
Type: RFE Version: None
Submitter: fishybell Created on: 2006-04-25 15:24:42
Subsystem: 24. Channel Commands Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Open Last Modified: 2006-08-31 06:04:49
Resolution: None Closed By:
    Closed on:
Description:
Currently the exec function will always fail if the
process writes to standard error. Since various
applications use stderr for debug output it would be
useful to retain this output without having to resort
to redirecting stderr to stdout. I've included a patch
that adds the "-ignorestderr" option to exec to
accomplish just this. Without the switch, exec runs as
normal, with the switch stderr will continue to be
written without stopping the command. The drawback to
this is that if "-ignorestderr" is used, and the
program fails, stderr is not appended to the result. It
is useful in some situations, but not others.

I've tested the patch only on linux. It should function
properly on windows, but will need testing. The patch
is against the most recent cvs checkout from sourceforge.
User Comments: arunbp added on 2006-08-31 06:04:49:
Logged In: YES 
user_id=1587423

ta

fishybell added on 2006-04-25 22:24:45:
File Added - 175739: exec.diff

Attachments: