Thanks for the report.
That's fixed in the latest release.
ftp://ftp.gnu.org/gnu/fileutils/fileutils-4.1.tar.gz
Michal Vitecek <[EMAIL PROTECTED]> wrote:
| today i did:
| mv -f filename filename
| the result was that mv warned me about the same file name and happily
| removed it altogether! shouldn't it test whether the two file names are
| the same and if they are, do nothing? sorry, but its current behaviour
| seems completely illogical to me:
|
| [fuf@fuf ~/]$ ls -l test
| -rw-r--r-- 1 fuf fuf 12 Jun 9 16:48 test
| [fuf@fuf ~/]$ mv test test
| mv: `test' and `test' are the same file
| [fuf@fuf ~/]$ ls -l test
| -rw-r--r-- 1 fuf fuf 12 Jun 9 16:48 test
| [fuf@fuf ~/]$ mv -f test test
| mv: `test' and `test' are the same file
| [fuf@fuf ~/]$ ls -l test
| ls: test: No such file or directory
|
| i understand the -f behaviour when the two files are not the same, but
| why it removes the same file is completely beyond me.
_______________________________________________
Bug-fileutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-fileutils