delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/17/12:33:08

Date: Tue, 17 Mar 1998 18:44:50 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Andris Pavenis <pavenis AT laima DOT acad DOT latnet DOT lv>
cc: Vik Heyndrickx <Vik DOT Heyndrickx AT rug DOT ac DOT be>, djgpp AT delorie DOT com
Subject: Re: Rebuilding config.in in gcc-2.8.1
In-Reply-To: <199803171322.PAA52048@ieva06.lanet.lv>
Message-ID: <Pine.SUN.3.91.980317184045.19045J-100000@is>
MIME-Version: 1.0

On Tue, 17 Mar 1998, Andris Pavenis wrote:

> ---------  fragment from c:/djgpp/bin/autoheader  -------
> 
> if test $# -eq 0; then
>   tmpout=autoh$$
>   trap "rm -f $tmpout; exit 1" 1 2 15
>   exec > $tmpout
> fi

I don't remember seeing this fragment.  Vik, did you include it in the 
excerpts that you posted?

Does this mean that if Autoheader is run with an argument this problem is 
avoided?  Can you try?

Anyway, if the part of the script which mv'es $tmpout does that while 
output is still redirected to $tmpout, then this indeed will not work on 
non-Unix systems.  I think this should be changed in the ported 
Autoheader.  Renaming or deleting files which are open by some program is 
nothing but trouble on MS-DOS/MS-Windows.

- Raw text -


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