Mail Archives: djgpp/1998/03/19/03:41:20
Eli Zaretskii wrote:
>
> 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?
Nope, but it seems that I should have. Sorry, about that.
> Does this mean that if Autoheader is run with an argument this problem is
> avoided? Can you try?
I can, but I don't understand what you want me to do exactly (I don't
share the 2 years of experience in complicated scripts, I barely can
read one)
> 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'm not so sure whether moving a file that is open is allowed on Unix
systems. Enfin, I don't know and considering i-nodes, it may work there.
> I think this should be changed in the ported Autoheader.
So do I, but don't look at me. I might create a nuclear bomb out of
autoheader. (I'd bet the American goverment will intercept this email)
> Renaming or deleting files which are open by some program is
> nothing but trouble on MS-DOS/MS-Windows.
I don't blame M$ for this. It's more than sensible not to allow that.
--
\ Vik /-_-_-_-_-_-_/
\___/ Heyndrickx /
\ /-_-_-_-_-_-_/
- Raw text -