www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/01/11/14:46:22

Date: Wed, 11 Jan 95 13:03:59 EST
From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: bug in djgpp's make
Reply-To: babcock AT cfa DOT harvard DOT edu

> Neither bug nor gotcha.  Every reasonable make program calls
> compilers directly, not through COMMAND.COM (with spawnXXX()
> function call), precisely because this is the only way to get
> at its exit status.

Actually, it is possible to get the exit status from a program run under
COMMAND.COM in a reasonably portable way: create a .BAT file to run the
program, check the error level in the .BAT file and signal success/failure
through an environment variable or auxiliary file.  OPUS make actually does
this automatically when it needs to go through command.com.

- Raw text -


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