Re: behavior of overwriting running executables?

Matti E Aarnio (
Fri, 17 May 1996 10:05:36 +0300 (EET DST)

> I wanted behavior to unlink the file when linking since I have problems:
> 1) when I'm setuiding a program I'm working on (I normally have to
> rm in the makefile
> 2) when I'm leaving the binary running (normally a mistake).
> I want the link to proceed without a problem (linux reports
> "text file busy"
> This seems correct and I don't see harm...
> Comments? You want to put it in?

Naeh, bad practice, and would not work at non-GNU-utils systems
anyway. (Think about your average SysV machine..)

I do:

install ... /path/to/target.x && mv /path/to/target.x /path/to/target

which happens to work at all systems I have used.
Similarly at object linkage I use target name with .x suffix,
and then " && mv NN.x NN".
> marty
> Member of the League for Programming Freedom

/Matti Aarnio <>