summaryrefslogtreecommitdiffstats
path: root/bin/cp
diff options
context:
space:
mode:
authortrhodes <trhodes@FreeBSD.org>2005-02-24 00:06:22 +0000
committertrhodes <trhodes@FreeBSD.org>2005-02-24 00:06:22 +0000
commitf1a5d5f8250bff76d29daf88ff23b3ac992ba74c (patch)
treee9df8382b9d4195807a00a8efdc7bdf5f1d90866 /bin/cp
parent5e49a0b3963594cfb0bb39292e3cfb709a36ae22 (diff)
downloadFreeBSD-src-f1a5d5f8250bff76d29daf88ff23b3ac992ba74c.zip
FreeBSD-src-f1a5d5f8250bff76d29daf88ff23b3ac992ba74c.tar.gz
Note how cp(1) handles directories ending in "/."
PR: 75774 Submitted by: Mike Meyer <mwm@mired.org> (original version)
Diffstat (limited to 'bin/cp')
-rw-r--r--bin/cp/cp.16
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/cp/cp.1 b/bin/cp/cp.1
index c14221d..b254db7c 100644
--- a/bin/cp/cp.1
+++ b/bin/cp/cp.1
@@ -32,7 +32,7 @@
.\" @(#)cp.1 8.3 (Berkeley) 4/18/94
.\" $FreeBSD$
.\"
-.Dd July 23, 2002
+.Dd February 23, 2005
.Dt CP 1
.Os
.Sh NAME
@@ -94,6 +94,10 @@ If
designates a directory,
.Nm
copies the directory and the entire subtree connected at that point.
+If the source_file ends in a
+.Pa / ,
+the contents of the directory are copied rather than the
+directory itself.
This option also causes symbolic links to be copied, rather than
indirected through, and for
.Nm
OpenPOWER on IntegriCloud