Date: Tue, 17 Mar 1998 18:44:50 +0200 (IST) From: Eli Zaretskii To: Andris Pavenis cc: Vik Heyndrickx , 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.