aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKit Dallege <xaum.io@gmail.com>2026-03-27 04:25:44 +0000
committerWarner Losh <imp@FreeBSD.org>2026-06-10 12:35:03 +0000
commit2c5fd7d9a7ed36cf15dd538d9533e7835c7f8555 (patch)
tree390cd67fdcdb4bb87fd0c5cb3e14ec18b3937b36
parent82780af43b113ab16a1a4fab5bf085b2b159f81e (diff)
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
-rw-r--r--bin/cp/cp.113
1 files 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