2008-09-15 – Symbolic links

What happens if you try to create a symlink to a zero-length target, as in ln -s "" foo?

Linux: ENOENT.

Mac OS X 10.4: EINVAL.

FreeBSD: works, and any attempt to resolve the symlink returns ENOENT.

Solaris: works, and the resulting symlink behaves the same as ln -s . foo

⇐ 2008-09-10 ⇐ Counting the days ⇐ ⇒ The date of the count ⇒ 2008-09-15 ⇒