bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Feature request, mv


From: Joshua Hudson
Subject: Feature request, mv
Date: Tue, 9 May 2006 18:47:06 -0700

In some cases, it is desirable to rename something on top of a
symbolic link to a directory:

$ mkdir www1.0
$ (cd www1.0 && tar -zxf /tmp/www.new.tgz)
$ ln -s www1.0 www

(some time later)

$ mkdir www1.1
$ (cd www1.1 && tar -zxf /tmp/www.updated.tgz)
$ ln -s www1.0 tmp
$ mv tmp www

The desired behavour is the instantous replacement of the www dir with
no time that the site is down (mv is atomic, ln -fs is not).

However, this sequence of operations moves tmp inside www.
Perhaps an option that is "just execute the system call!" would help, along
the lines of "ln -d" and "rm -d", for which I take -d as meaning the same thing.
For sanity reasons, you might want to ensure that there is only *one* source.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]