Let's say I have file A, and using 'ln -s A B', I have B.
When I open, edit and save B, now B is not symlink anymore. It's just a new copy of A.
- Is this expected behavior? I use Mac OS X, and I wonder it's common in UNIX.
- In this case, is there any way to keep B as a (soft link) to A? Or, make B as the hard link would be the only way to solve this issue?
- What's the advantage of using soft link than hard link?
ADDED
The editor that I use is 'TextMate' on Mac.