hello,
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.
--
fuf
------------------------------ na IRC -------------------------------------
BillGates [[EMAIL PROTECTED]] has joined #LINUX
...
mode/#linux [+b BillGates!*@*] by DoDad
BillGates was kicked off #linux by DoDad (banned: We see enough of Bill
Gates already.)
_______________________________________________
Bug-fileutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-fileutils