[Bug 289959] cp(1): Confusing instructions wether -P requires -R
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 289959] cp(1): Confusing instructions wether -P requires -R"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 02 Oct 2025 09:56:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289959 --- Comment #1 from Marián Černý <majo-bugs.freebsd.org@cerny.sk> --- This inconsistency has been introduced in commit cp: Make -P work without -R as per POSIX https://github.com/freebsd/freebsd-src/commit/97e13037915c22162f199461f56951793d669f57 So the note that -P is ignored unless -R is specified should be rephrased. Note that the following sentence follows: > In addition, these options override each other and the command's actions are determined by the last one specified. So maybe the following fix would work: > The -H and -L options are ignored unless the -R option is specified. > In addition, the options -H, -L and -P override each other and the > command's actions are determined by the last one specified. (Tested with `cp -P -H /tmp/symlink /tmp/copy`... it does not result in symlink.) See also: https://reviews.freebsd.org/D30012 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199466 -- You are receiving this mail because: You are on the CC list for the bug.