cp(1): fix -P documentation to reflect it works without -R

Since commit 97e1303791, 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
This commit is contained in:
Kit Dallege
2026-03-27 05:25:44 +01:00
committed by Warner Losh
parent 82780af43b
commit 2c5fd7d9a7
+8 -5
View File
@@ -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