I've noticed this inconsitancy with two different versions of mv:

$ (3) echo bozo >> foo
$ (4) ls -l foo
-rw-r--r--   1 dragon   users           5 May 17 16:44 foo
$ (5) mv foo foo
mv: `foo' and `foo' are the same file
$ (6) ll foo
-rw-r--r--   1 dragon   users           5 May 17 16:44 foo
$ (7) mv -f foo foo
mv: `foo' and `foo' are the same file
$ (8) ll foo
ls: foo: No such file or directory
$ (9) mv --version
mv (GNU fileutils) 4.0
$ (10)

This does NOT happen on an older version, like mv (GNU fileutils) 3.16
Is this how mv is supposed to behave now?
  -Carl

Reply via email to