diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2015-12-04 17:36:35 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2015-12-04 17:36:35 +0000 |
commit | 1c5b4d7b40c59626e2cc40bf9ef5f7c88a5aae8d (patch) | |
tree | ea892807f71f69dc2646a0aa462d766fa8ad85f2 /bin/cp/cp.1 | |
parent | b490558ee69797c8ad222f42606ea4ebb09a9b90 (diff) | |
download | FreeBSD-src-1c5b4d7b40c59626e2cc40bf9ef5f7c88a5aae8d.zip FreeBSD-src-1c5b4d7b40c59626e2cc40bf9ef5f7c88a5aae8d.tar.gz |
MFC r284105,r284106,r284163:
r284105:
Cleanup some indentation issues.
r284106:
Implement '-s' to copy as symlink, similar to the current -l link(2)
handling.
r284163:
Cleanup some style(9) issues.
Relnotes: yes
Diffstat (limited to 'bin/cp/cp.1')
-rw-r--r-- | bin/cp/cp.1 | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/bin/cp/cp.1 b/bin/cp/cp.1 index 169f350..9bbd9d6 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 March 15, 2013 +.Dd June 6, 2015 .Dt CP 1 .Os .Sh NAME @@ -45,7 +45,7 @@ .Op Fl H | Fl L | Fl P .Oc .Op Fl f | i | n -.Op Fl alpvx +.Op Fl alpsvx .Ar source_file target_file .Nm .Oo @@ -53,7 +53,7 @@ .Op Fl H | Fl L | Fl P .Oc .Op Fl f | i | n -.Op Fl alpvx +.Op Fl alpsvx .Ar source_file ... target_directory .Sh DESCRIPTION In the first synopsis form, the @@ -179,6 +179,8 @@ If the source file has both its set-user-ID and set-group-ID bits on, and either the user ID or group ID cannot be preserved, neither the set-user-ID nor set-group-ID bits are preserved in the copy's permissions. +.It Fl s +Create symbolic links to regular files in a hierarchy instead of copying. .It Fl v Cause .Nm @@ -298,7 +300,10 @@ differ as they copy special files as normal files while recreating a hierarchy. .Pp The -.Fl v +.Fl l, +.Fl s, +.Fl v, +.Fl x and .Fl n options are non-standard and their use in scripts is not recommended. |