Mail Archives: djgpp/1997/01/19/10:39:30
On 19 Jan 1997, Michael F Brenner wrote:
> Problem with this answer: the exit codes and exceptions thrown
> by the program being redirected do not seem to be transmitted
> through redir. This makes it unusable in situations where you
> wish to control execution of the next command based on
> success of the previous command.
How so? AFAIK, all the messages, including the crash traceback, are
written to stderr, so where's the problem?
If you are talking about passing the exit codes, then please give an
example where this is a problem when running them with redir.
> Alternate answer: possibly reconsider the decision to put errors to
> stderr, which, in DOS out of the box, appears to be more suitable for
> fatal errors not diagnostic messages from compilers, etc.
In my book, stderr is for errors, not only fatal errors. Anyway, this is
the way gcc works on all systems, and the DJGPP port doesn't change that.
- Raw text -