It seems for me that mv in coreutils 4.5.8 failes to move files
in a certain condition.

* How to reproduce the bug.

mkdir dst src

echo FUBAR >dst/a
ln dst/a dst/b
ln dst/a dst/c
ln dst/a dst/d
chmod a+w dst/a

echo FROBOZ >src/a
ln src/a src/b
ln src/a src/c
ln src/a src/d

cd src
mv a b c d ../dst

* What I expected.

src/a, src/b, src/c and src/d are all gone in src/,
but found in dst/.

* What I got.

The following messages:
mv: cannot create hard link `../dst/b' to `../dst/a': File exists
mv: cannot create hard link `../dst/d' to `../dst/c': File exists

I see src/b and src/d.

* Why it is wrong.

src/b and src/d should also be moved like src/a and src/c.
--
  iida


_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to