Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Oct 2025 09:44:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 289959] cp(1): Confusing instructions wether -P requires -R
Message-ID:  <bug-289959-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

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 the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-289959-227>