Bug moving file over link?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Can someone explain to me what is happening here:

~ $ touch foo
~ $ ln foo bar
~ $ ls foo bar
bar  foo
~ $ mv foo bar
~ $ ls foo bar
bar  foo

I try to move a file over a hard linked copy of itself and the move
fails, but there is no error.  Is this the intended behavior?


-- 
Ben Escoto

Attachment: pgp00019.pgp
Description: PGP signature


[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux