On 7/26/22 13:15, John Hawkinson wrote:
If it means to enumerate only Zones and omit Links, which is what I think you mean, then readlink will work only if Links are implemented via symbolic links. Although Debian and Red Hat based systems do that, the default TZDB installation does not (it uses hard links), and Alpine, macOS, NetBSD, OpenBSD, OpenSUSE etc. use the default either because it is the default or because it is a bit more efficient.
You sure?
My MacOS 12.5 laptop uses a symlink for /etc/localtime
Oh, I was referring to links like these on Ubuntu 22.04: $ ls -l /usr/share/zoneinfo/Europe/Belfast lrwxrwxrwx 1 root root 6 Mar 21 11:29 /usr/share/zoneinfo/Europe/Belfast -> London I was not talking about /etc/localtime, which is a different kettle of fish. PS. Based on my misreading of a quick Google search I said in that quote above that macOS uses hard links for aliases like Europe/Belfast. However, Guy just reported[1] that current Ventura beta uses copies, just like FreeBSD does. Apologies for the error. [1] https://mm.icann.org/pipermail/tz/2022-July/031706.html