Artifacts Associated With Ticket 218167ffffffffff
Ticket change [b5689326a8] (rid 125239) by nobody on 2000-10-26 00:54:03:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 2252 Bug Version: 8.0.4 SubmitDate: '1999-06-16' LastModified: '1999-12-03' Severity: SER Status: Closed Submitter: techsupp ChangedBy: hobbs OS: HP-UX OSVersion: B.10.20 A 9000/782 2007715559 Machine: Other FixedDate: '2000-10-25' ClosedDate: '1999-12-03' Name: Thomas Joergensen ReproducibleScript: $ cat booh #! /bin/ksh print "Hello World." print -u2 "Booh!" $ cat catchbooh #! /usr/local/bin/tclsh puts [catch {exec ./booh} out] $ ./catchbooh 1 Booh! $ ObservedBehavior: exec fails if the external program writes anything to stderr. This is not a wrong behavior of a program and should not in itself not throw an exeption. The Korn shell script exits normally with an exitcode of zero. If it prints to stdout (print "...") instead, it does not make exec throw an exeption. I take this to be a bug, since it is not described in either the exec(3t) man page nor in the "Tcl and the TK Toolkit" by John K. Ousterhout DesiredBehavior: An external program terminating with an exitcode of zero should not make exec throw an exeption. In the docs for exec for Tcl, it states: If any of the commands writes to its standard error file and that standard error isn't redirected, then exec will return an error; the error message will include the pipeline's standard output, followed by messages about abnormal terminations (if any), followed by the standard error output. -- 12/03/1999 hobbs - foundin initialized to: "obsolete: 8.0.4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "60. NRE and coroutines"
- title initialized to: "exec fails if external program outputs on stderr."
- type initialized to: "Bug"
Ticket change [5ef64e3c93] (rid 115727) by welch on 2000-10-26 08:15:57:
- closedate changed to: "2000-10-26T01:15:57"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [8c849736d7] (rid 127754) by dgp on 2001-04-05 08:20:14:
- closedate changed to: "2001-04-05T01:20:14"
- closer changed to: "dgp"
- subsystem changed to: "27. Channel Types"