ian-twilightcoder wrote:

References:
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/cp.html
There is no defined behavior for symlinks when `-R` is specified by itself. 
Suggests that `-r` doesn't do what one would expect.

https://man.freebsd.org/cgi/man.cgi?query=cp&manpath=FreeBSD+16.0-CURRENT
https://man.freebsd.org/cgi/man.cgi?query=cp&manpath=macOS+26.4
Documents that `-P` is the default for `-R`. Specifies that `-r` is equivalent 
to `-RL`. `-RH` is chosen to replace `-r` because it preserves the behavior of 
following the symlink on the command line, but does not replace any symlinks 
inside the specified directory. This preserves the internal structure in Apple 
bundles, i.e. the Test.framework/Headers symlink is preserved to point at 
Versions/Current/Headers instead of being replaced with a redundant copy of the 
headers.

https://github.com/llvm/llvm-project/pull/201463
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to