bug-coreutils
[Top][All Lists]
Advanced

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

mv fails to move files


From: Iida Yosiaki
Subject: mv fails to move files
Date: Fri, 28 Feb 2003 09:10:51 -0500

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




reply via email to

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