delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/19/10:39:30

Date: Sun, 19 Jan 1997 17:25:44 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Michael F Brenner <mfb AT mbunix DOT mitre DOT org>
cc: djgpp AT delorie DOT com
Subject: Re: How do I re-direct errors/warnings to file?
In-Reply-To: <5brtrh$dn9@top.mitre.org>
Message-ID: <Pine.SUN.3.91.970119172228.23317F-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019