Hi, ----- On 5 Mar, 2015, at 12:57, Jan Stary [email protected] wrote:
> The /private thing seems to be a more general MacOS thing. > Sorry for the OT, but can someone please elaborate? I don't know why it exists, but a couple of top-level directories are symlinked into /private. > For example, > > $ vi /tmp/foo > > creates "/tmp/foo" (obviously), but once I save it (:w), > it gets saved as "/private/tmp/foo"; at that moment, > there are two hardlinks for the same inode: > > $ ls -li /tmp/foo /private/tmp/foo > 15307909 -rw-r--r-- 1 hans wheel 6 Mar 5 12:55 /private/tmp/foo > 15307909 -rw-r--r-- 1 hans wheel 6 Mar 5 12:55 /tmp/foo Those aren't hardlinks, but /tmp is a symlink to /private/tmp. Your vim just happens to realpath(3) before saving, it seems. See: $ ls -ld /tmp -- Clemens Lang _______________________________________________ macports-users mailing list [email protected] https://lists.macosforge.org/mailman/listinfo/macports-users
