History log of /freebsd-current/bin/cp/cp.1
Revision Date Author Comments
# aaa1806f 01-Apr-2024 Dag-Erling Smørgrav <des@FreeBSD.org>

cp: Correct the list of non-portable flags.

MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D44576


# 53fc8e19 14-Dec-2023 Dag-Erling Smørgrav <des@FreeBSD.org>

cp: Move the -N flag in the manual page.

This accidentally got left out of 0f4467ce444b.

MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: kevans, allanjude
Differential Revision: https://reviews.freebsd.org/D43067


# 5a52e3d0 07-Dec-2023 Warner Losh <imp@FreeBSD.org>

cp: Add -N flag, inspired by NetBSD's similar flag

Add -N to supress copying of file flags when -p is specified (explicitly
or implicitly). Often times we don't care about the flags or wish to be
able to copy to NFS, and this comes in handy for that. FreeBSD's and
NetBSD's cp are somewhat different, so I had to reimplement all but one
of the patch hunks...

Obtained from: NetBSD (cp.1 1.25, cp.c 1.37, utils.c 1.28 by elad)
Sponsored by: Netflix

Differential Revision: https://reviews.freebsd.org/D42673


# 90aea514 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

bin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# b2c76c41 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line nroff pattern

Remove /^\.\\"\s*\$FreeBSD\$$\n/


# 97e13037 22-Feb-2022 Cameron Katri <me@cameronkatri.com>

cp: Make -P work without -R as per POSIX

According to POSIX, cp should allow the `-P` flag to work whether `-R`
is specified or not. Currently, the `-P` option only works along with
`-R`.

PR: 199466
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D30012


# 5388e0e3 03-Oct-2020 Gordon Bergling <gbe@FreeBSD.org>

cp(1): Bugfixes for some issues reported by mandoc

- no blank before trailing delimiter

MFC after: 1 week


# fbbd9655 28-Feb-2017 Warner Losh <imp@FreeBSD.org>

Renumber copyright clause 4

Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.

Submitted by: Jan Schaumann <jschauma@stevens.edu>
Pull Request: https://github.com/freebsd/freebsd/pull/96


# 7ea2450f 07-Jun-2015 Bryan Drewery <bdrewery@FreeBSD.org>

Implement '-s' to copy as symlink, similar to the current -l link(2) handling.

This is also implemented in at least GNU coreutils cp.

While here also improve the '-l' handling to not open(2) the source file as
it does not actually need the descriptor.

Sponsored by: EMC / Isilon Storage Division


# e9e3a1ab 15-Mar-2013 Joel Dahl <joel@FreeBSD.org>

Add a few examples.

Obtained from: OpenBSD


# c55e0c62 03-Sep-2012 Edward Tomasz Napierala <trasz@FreeBSD.org>

Explicitly mention that "cp -p" copies ACLs.

PR: docs/168962
MFC after: 1 month


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# 3d4d4693 16-Feb-2010 Gavin Atkinson <gavin@FreeBSD.org>

Merge r202461 from head:

Implement an "-x" option to cp(1), for compatibility with Linux and
feature parity with du(1) and similar: When set, cp(1) will not traverse
mount points.

PR: bin/88056
Initial patch by: Graham J Lee leeg teaching.physics.ox.ac.uk


# f815125f 17-Jan-2010 Gavin Atkinson <gavin@FreeBSD.org>

Implement an "-x" option to cp(1), for compatibility with Linux and
feature parity with du(1) and similar: When set, cp(1) will not traverse
mount points.

Initial patch by: Graham J Lee leeg teaching.physics.ox.ac.uk

PR: bin/88056
Initial patch by: Graham J Lee leeg teaching.physics.ox.ac.uk
Approved by: ed (mentor)
MFC after: 1 month


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# d140946c 10-Mar-2008 John Baldwin <jhb@FreeBSD.org>

Add an '-a' option which is identical to specifying '-RpP' for
compatibility with other implementations.

MFC after: 1 month


# b873ae5c 02-Nov-2006 Ceri Davies <ceri@FreeBSD.org>

Fix typo.


# f3955abb 27-Oct-2006 Tom Rhodes <trhodes@FreeBSD.org>

Wording nits.


# 6138defa 24-Oct-2006 Tom Rhodes <trhodes@FreeBSD.org>

Flesh out the compatibility section a little bit. Bump doc date.


# ba3fe6d1 07-Oct-2006 Tom Rhodes <trhodes@FreeBSD.org>

Make -r a synonym for -R, similar to behavior on Linux while being backwards
compatible with old -r behavior with regards to -L. You can now copy fifos
and other special files with -r.

Reviewed by: -standards (long ago), das, bde
Approved by: bde (recently)


# cbae88b9 25-Aug-2006 Ruslan Ermilov <ru@FreeBSD.org>

- Fix options order.
- Touch manpage's document date.


# 6fa36377 24-Aug-2006 Julian Elischer <julian@FreeBSD.org>

Add an option to allow copying of a hierarchy while linking he regular files.
Bikeshedded to death on: hackers
Submitted by:andersonatcenttech.com
MFC in: 1 month


# 61001d75 24-Feb-2005 Tom Rhodes <trhodes@FreeBSD.org>

Fix a few markup nits in previous commit.

Noticed by: ru, who else? :)


# a5e18136 23-Feb-2005 Tom Rhodes <trhodes@FreeBSD.org>

Note how cp(1) handles directories ending in "/."

PR: 75774
Submitted by: Mike Meyer <mwm@mired.org> (original version)


# 6fca4c7c 16-Jan-2005 Ruslan Ermilov <ru@FreeBSD.org>

Add the new standard EXIT STATUS section where appropriate.
Sort standard sections in the (documented) preferred order.


# 9ddb49cb 10-Jan-2005 Warner Losh <imp@FreeBSD.org>

/*- or .\"- or #- to begin license clauses.


# eccea571 02-Jul-2004 Ruslan Ermilov <ru@FreeBSD.org>

Mechanically kill hard sentence breaks.


# 6195fb41 06-Apr-2004 Mark Murray <markm@FreeBSD.org>

Remove clause 3 from the UCB licenses.

OK'ed by: imp, core


# 7d2191c8 07-Jun-2003 Ruslan Ermilov <ru@FreeBSD.org>

Clarify what -p option does.

Prodded by: marcel

While here, spell the "set-{user,group}-ID bit" correctly.


# 00d321a2 07-Apr-2003 Matthew N. Dodd <mdodd@FreeBSD.org>

Add a SIGINFO handler.


# e849cfac 15-Aug-2002 Johan Karlsson <johan@FreeBSD.org>

Bump document date for the -n option.

Approved by: sheldonh (mentor)


# c3ff3e42 09-Aug-2002 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: grammar.


# 786c276f 22-Jul-2002 Johan Karlsson <johan@FreeBSD.org>

Add the -n option, which automatically answers "no" to the overwrite question.

PR: 7828
Suggested by: Daniel O'Connor <doconnor@gsoft.com.au>
Approved by: sheldonh (mentor)
MFC after: 2 weeks


# d628d776 15-Aug-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: utilize the new .Ex macro.


# 7ebcc426 15-Jul-2001 Dima Dorfman <dd@FreeBSD.org>

Remove whitespace at EOL.


# caa2db3b 10-Jul-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: removed HISTORY info from the .Os call.


# 95a09b05 25-May-2001 Ruslan Ermilov <ru@FreeBSD.org>

Make it clear that -P is the default.

PR: docs/27629


# b931f9b3 03-Feb-2001 Stephen McKay <mckay@FreeBSD.org>

In the hope of saving others from hours of tedious recovery work,
document that cp still isn't very useful for recursive copies even
with the -R flag. This is because hard links are broken by cp.


# be8b1497 20-Nov-2000 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: use the new features of the Nm macro.


# 0efa2040 28-Nov-1999 Michael Haro <mharo@FreeBSD.org>

brucify

Reviewed by: obrien


# fcb2f1b3 29-Aug-1999 Michael Haro <mharo@FreeBSD.org>

brucify and move printf() to catch cases of special files


# 2a456239 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 4506e907 25-Aug-1999 Michael Haro <mharo@FreeBSD.org>

Add a verbose mode to show what files are being copied.
Idea taken from obrien.

Reviewed by: obrien


# 46be34b9 08-May-1999 Kris Kennaway <kris@FreeBSD.org>

Various spelling/formatting changes.

Submitted by: Philippe Charnier <charnier@xp11.frmug.org>


# 22f66533 13-Oct-1998 Joseph Koshy <jkoshy@FreeBSD.org>

Correct a grammatical nit and remove ambiguity about the effect of
the -p option.

PR: 8229
Submitted-by: Sheldon Hearn <axl@iafrica.com>


# cbf6f7d3 06-May-1998 Philippe Charnier <charnier@FreeBSD.org>

Correct use of .Nm and other cosmetics. Add rcsid. Remove unused #inc.


# b97fa2ef 22-Feb-1997 Peter Wemm <peter@FreeBSD.org>

Revert $FreeBSD$ to $Id$


# 1130b656 14-Jan-1997 Jordan K. Hubbard <jkh@FreeBSD.org>

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 890acb95 13-Dec-1996 Steve Price <steve@FreeBSD.org>

Merge Lite2 mods and -Wall cleaning.


# b8923d4c 29-Aug-1996 Wolfram Schneider <wosch@FreeBSD.org>

[HISTORY] command appeared in Version 1 AT&T UNIX
Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41


# 6add522f 07-Mar-1996 Wolfram Schneider <wosch@FreeBSD.org>

Option -f implemented (remove + create)
option -f and -i are exclusive
respond `Y' is equal to `y'
fix usage string
remove isatty(3) check

Reviewed by: pst


# d7e0e5ca 18-Feb-1996 Wolfram Schneider <wosch@FreeBSD.org>

delete my last commit
Submitted by: pst, ache


# d6ea04cc 18-Feb-1996 Wolfram Schneider <wosch@FreeBSD.org>

Option -f implemented (remove + create)
option -f and -i are exclusive
all flag variables initialized with zero
respond `Y' is equal to `y'
update usage string


# 89730b29 23-Sep-1994 David Greenman <dg@FreeBSD.org>

Added $Id$


# 4b88c807 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite bin Sources