git: 2c5fd7d9a7ed - main - cp(1): fix -P documentation to reflect it works without -R

From: Warner Losh <imp_at_FreeBSD.org>
Date: Wed, 10 Jun 2026 12:36:11 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=2c5fd7d9a7ed36cf15dd538d9533e7835c7f8555

commit 2c5fd7d9a7ed36cf15dd538d9533e7835c7f8555
Author:     Kit Dallege <xaum.io@gmail.com>
AuthorDate: 2026-03-27 04:25:44 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2026-06-10 12:35:03 +0000

    cp(1): fix -P documentation to reflect it works without -R
    
    Since commit 97e13037915c, the -P flag works without -R as
    required by POSIX. Update the man page to state that only -H
    and -L are ignored without -R, while -P can be used independently.
    
    PR: 289959
    Signed-off-by: Kit Dallege <xaum.io@gmail.com>
    Reviewed by: imp
    Pull Request: https://github.com/freebsd/freebsd-src/pull/2102
---
 bin/cp/cp.1 | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/bin/cp/cp.1 b/bin/cp/cp.1
index 5231fa72621c..e31eb07ecd92 100644
--- a/bin/cp/cp.1
+++ b/bin/cp/cp.1
@@ -29,7 +29,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd July 9, 2025
+.Dd June 9, 2026
 .Dt CP 1
 .Os
 .Sh NAME
@@ -247,14 +247,17 @@ flags (in conjunction with the
 .Fl R
 flag) cause symbolic links to be followed as described above.
 The
-.Fl H ,
-.Fl L
+.Fl H
 and
-.Fl P
+.Fl L
 options are ignored unless the
 .Fl R
 option is specified.
-In addition, these options override each other and the
+The
+.Fl P
+option can be used with or without
+.Fl R .
+These options override each other and the
 command's actions are determined by the last one specified.
 .Pp
 If