I faced a little strange behavior, while using hard links. From Terminal, I create a text file 1.txt and a hard link "to this file"
nano 1.txt mkdir dir ln 1.txt ./dir/
I check the resulting hard link and see that its contents are the same as of the original file.
I change the initial file ...
... and see, that changes was reflected in hard-link
I change content of hard-link (more correct, of course - file, being referenced with hard-link) ...
... and see, that changes are reflected in initial file
Until now, all going well...
Now, I close Terminal and start playing with created files (1.txt and ./dir/1.txt) from Finder. When I change on this two files with TextEdit, changes are not reflected in another file.
The hard link is now broken. What's going on?