[Top][All Lists]
[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.
- Feature request, mv,
Joshua Hudson <=
- Re: Feature request, mv, Eric Blake, 2006/05/09
- Message not available
- Re: Feature request, mv, Eric Blake, 2006/05/10
- Re: Feature request, mv, Jim Meyering, 2006/05/10
- Re: Feature request, mv, Joshua Hudson, 2006/05/10
- Re: Feature request, mv, Jim Meyering, 2006/05/10
- Re: Feature request, mv, Joshua Hudson, 2006/05/10
- Re: Feature request, mv, Jim Meyering, 2006/05/10
Re: Feature request, mv, Eric Blake, 2006/05/10