Mail Archives: djgpp/1997/01/20/16:06:21
The question was asked how to deal with diagnostics that are given
to stderr instead of to stdout. The responses included (a) it is
good to put non-fatal errors to stderr, and (b) use redir to
put them stdout. Mike Brenner identified that (a) DOS out of the
box does not redirect or work with stderr and therefore only
fatal errors should be written there and (b) redir does not
always (or ever) transmit the exit code of programs (although
in fatal exceptions redir sometimes fails which has the same
effect as transmitting a bad exit code).
Eli responsed: If you are talking about passing the exit codes, then
please give an example where this is a problem when running them with redir.
-----------------
An example would be a batch file which runs many gccs in a row under
various languages (c, gnat, f77). It would be a better development
environment if that batch file could be set up to stop executing at the
first diagnostic message.
- Raw text -