Mail Archives: djgpp/1998/03/17/12:33:08
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 -