Richard Kettlewell wrote:
...in fact looking at the spec I can't see anything about -P which guarantees hard links to be preserved, which is part of the requirement (and part of what GNU cp -a does). Indeed it says:
in particular, pax maintains the hard-link structure of the hierarchy, while cp does not.
i.e. POSIX cp is not up to the job.
ah! i apologise. the man page for gnu cp i have access to makes no mention of hard links, just symlinks for -d, but the info page does mention hard links. so you are indeed correct. sorry for wasting your time.