www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/12/17/17:10:41

From: Michael Feldman <mfeldman AT seas DOT gwu DOT edu>
Subject: output redirection in version 2
To: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP List)
Date: Sat, 17 Dec 1994 15:51:37 -0500 (EST)

Hi!

Is there any plan to find a clever way to redirect stderr and stdout
to _different_ files in version 2? This is what's done in Unix and
OS/2.

We are running into this in 1.12 in trying to build a GNAT programming
environment that will let us pick up error messages and position
the cursor at the error location. This causes problems if we are
also creating a listing file, because GNAT (Unix-ly) sends the
listing to stdout and it is unreasonable to change that policy
just for DOS.

Using the "2r1" option in go32 gets us the information we need, but
now it's interspersed with the listing because  both stderr and stdout
are sent to the same file. We can post-process the listing to extract
the error messages, but it's rather kludgy.

This is a mess in the DOS shell environment, but is it a feasible
fix for version 2?

BTW - if the djgpp community thinks a DOS-ish, Turbo-like copylefted
editor is a good idea for the other djgpp languages, not just GNAT,
we are early enough in development to think seriously about this.

Thanks!

Mike Feldman

PS - this must be an FAQ but it's not in the FAQ file. Where is the
documentation of the various go32 options? I can't find it in the
djgpp info directories either.

- Raw text -


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