"Joshua Hudson" <address@hidden> wrote:
...
> I still have to admit being surprised that, when
> $ mkdir a
> $ mkdir b
> $ strace ./mv -T -f a b
> didn't even try to rename("a", "b") before giving error message.
Once it knows the target (b) is a directory, if you're using -T, mv knows
that it must fail -- rename ("anything", "directory") will always fail.