MacPorts 2.3.2 and "port provides"
cal at macports.org
Thu Mar 5 05:26:37 PST 2015
----- On 5 Mar, 2015, at 12:57, Jan Stary hans at stare.cz 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.
$ ls -ld /tmp
More information about the macports-users