Re: 'mv' (fileutils-4.1) cannot rename hard link files.

Jim Meyering <[email protected]> Thu, 14 Aug 2003 11:48:03 +0200
Newsgroups gmane.comp.gnu.fileutils.bugs
Message-ID <[email protected]>
Thank you for the report.  fileutils-4.1 is well over two years old.
You may want to use a newer version of those tools.

mv of coreutils-5.0.90 (and of coreutils-5.0) works fine:
(coreutils is the union of fileutils, textutils, and sh-utils)

  $ mkdir tmp; touch A tmp/A tmp/B; ln A B; ls -ogi A B
  2262340 -rw-r--r--    5        0 Aug 14 11:43 A
  2262340 -rw-r--r--    5        0 Aug 14 11:43 B
  $ mv -f A B tmp
  $ ls -ogi tmp/*
  2262340 -rw-r--r--    5        0 Aug 14 11:43 A
  2262340 -rw-r--r--    5        0 Aug 14 11:43 B

YOKOTA Yoshinori / £Ä ÁÁ <[email protected]> wrote:
> I use 'mv' of fileutils-4.1 on Debian GNU/Linux woody.
> I realized that 'mv' cannot rename hard link files.
...