Bob Proulx <[EMAIL PROTECTED]> writes:
| Andreas
|
| > I wrote a program to generate a script containing multiple mv commands to
| > rename files, but when I ran it, mv kept says x file and y file are the
| > same. Some, I guess it renamed, but the bulk of my files are missing.
|
| I am guessing that you have a bug in your program that is producing a
| bug in your script that is renaming files. I really doubt this is a
| bug in mv. And the filesystem is part of the operating system.
| Although possible it would be most unlikely to trigger a bug in both
| mv and the filesystem at the same time. Again I doubt there is a
| problem there either.
...
Thanks for writing all that Bob.
Andreas, I don't see a mention of the version of mv that
you're using, but it's probably the one from fileutils-4.0.
If your mv command uses the -f option and not --backup,
then you may well have encountered this bug that was fixed
in 4.0i (back in May)
* `cp -f FILE FILE' and `mv -f FILE FILE' no longer remove FILE
in which case `mv' might have deleted the files.
There have been numerous test releases since then.
The latest is here:
ftp://alpha.gnu.org/gnu/fetish/fileutils-4.0o.tar.gz
If you're using the latest release of a linux distribution and they're
still distributing a versions of mv/cp that have this bug, then you
should complain to them (loudly).