Module Name:    src
Committed By:   wiz
Date:           Sun Mar 25 22:37:08 UTC 2012

Modified Files:
        src/bin/cp: cp.1

Log Message:
>From patch by Bug Hunting:
- bump the manpage's date (because of the next change);
- note that cp(1) does not preserve hard links (even with `-R'),
  and refer to pax(1) there as well as in the `SEE ALSO' section
  for such functionality (this change is based upon a similar note
  in FreeBSD's version of the manpage);
- change a wording, for more overall consistency.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/bin/cp/cp.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/cp/cp.1
diff -u src/bin/cp/cp.1:1.41 src/bin/cp/cp.1:1.42
--- src/bin/cp/cp.1:1.41	Wed Aug  3 15:44:15 2011
+++ src/bin/cp/cp.1	Sun Mar 25 22:37:08 2012
@@ -1,4 +1,4 @@
-.\"	$NetBSD: cp.1,v 1.41 2011/08/03 15:44:15 dholland Exp $
+.\"	$NetBSD: cp.1,v 1.42 2012/03/25 22:37:08 wiz Exp $
 .\"
 .\" Copyright (c) 1989, 1990, 1993, 1994
 .\"	The Regents of the University of California.  All rights reserved.
@@ -32,7 +32,7 @@
 .\"
 .\"	@(#)cp.1	8.3 (Berkeley) 4/18/94
 .\"
-.Dd August 3, 2011
+.Dd March 25, 2012
 .Dt CP 1
 .Os
 .Sh NAME
@@ -151,8 +151,15 @@ followed, and for
 to create special files rather than copying them as normal files.
 Created directories have the same mode as the corresponding source
 directory, unmodified by the process's umask.
+.Pp
+Note that
+.Nm
+copies hard linked files as separate files.
+If you need to preserve hard links, consider using a utility like
+.Xr pax 1
+instead.
 .It Fl v
-Cause
+Causes
 .Nm
 to be verbose, showing files as they are copied.
 .El
@@ -219,6 +226,7 @@ discouraged, as it does not correctly co
 or fifo's.
 .Sh SEE ALSO
 .Xr mv 1 ,
+.Xr pax 1 ,
 .Xr rcp 1 ,
 .Xr umask 2 ,
 .Xr fts 3 ,

Reply via email to