[Bug 289959] cp(1): Confusing instructions wether -P requires -R

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 02 Oct 2025 09:44:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289959

            Bug ID: 289959
           Summary: cp(1): Confusing instructions wether -P requires -R
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Manual Pages
          Assignee: bugs@FreeBSD.org
          Reporter: majo-bugs.freebsd.org@cerny.sk
                CC: doc@FreeBSD.org

The manual page for cp command states:

> -P    No symbolic links are followed.  This is the default if the -R option is specified.

and then later

> The -H, -L and -P options are ignored unless the -R option is specified.

However, it clearly works even without -R:

    touch /tmp/file
    ln -s /tmp/file /tmp/symlink
    cp -P /tmp/symlink /tmp/copy

... results in symlink /tmp/copy -> /tmp/file

-- 
You are receiving this mail because:
You are on the CC list for the bug.