martin f krafft <[EMAIL PROTECTED]> wrote:
> also sprach Jim Meyering <[EMAIL PROTECTED]> [2006.08.18.1456 +0100]:
>> Your example tried to move a nonempty directory to a new place,
>> where the new place is already occupied by a nonempty directory.
>> mv has never been able to do that.
>
> Ok. Right. And that's actually how I came upon this bug, because
> I was trying to form a case to support it, so if you move
> a directory a/ to foo/, and foo/a/ exists, then mv should just move
> a/* to foo/a/ and rmdir a afterwards...

Why don't you just do "mv a/* foo/a", if that's what you want?
I doubt GNU mv will ever do something like that for you,
given the command "mv a foo".

Depending on what your goal is, using mv's --backup option
might be enough.  That will move aside any destination before
doing the rename.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to