On Thu, 16 Oct 2003, Chr. von Stuckrad wrote:
> Normally in UNIXes I do this as:
>         ln imapd imapd.old
>         ln imapd.new imapd.mv
>         mv imapd.mv imapd

That's a good strategy if it works.  However, I've encountered UNIX
variants in which a busy text file can not be the destination of a rename.

It was strange, since it allows the busy text file to be renamed and even
unlinked.  But it does not allow rename to do an implicit unlink.  I
forget which UNIX variant does that.  I made a conscious effort to forget.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.

Reply via email to