[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mv bug
From: |
Jim Meyering |
Subject: |
Re: mv bug |
Date: |
10 Jun 2001 09:27:09 +0200 |
User-agent: |
Gnus/5.090003 (Oort Gnus v0.03) Emacs/21.0.104 |
Thanks for the report.
That's fixed in the latest release.
ftp://ftp.gnu.org/gnu/fileutils/fileutils-4.1.tar.gz
Michal Vitecek <address@hidden> 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:
|
| address@hidden ~/]$ ls -l test
| -rw-r--r-- 1 fuf fuf 12 Jun 9 16:48 test
| address@hidden ~/]$ mv test test
| mv: `test' and `test' are the same file
| address@hidden ~/]$ ls -l test
| -rw-r--r-- 1 fuf fuf 12 Jun 9 16:48 test
| address@hidden ~/]$ mv -f test test
| mv: `test' and `test' are the same file
| address@hidden ~/]$ 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.
- mv bug, Michal Vitecek, 2001/06/09
- Re: mv bug,
Jim Meyering <=