Home | History | Annotate | Download | only in cp
History log of /src/bin/cp/cp.1
RevisionDateAuthorComments
 1.46  23-Dec-2018  gutteridge Clarify a sentence about the error handling of cp(1)'s -p option.
Addresses PR bin/40336.
 1.45  11-Aug-2016  sevan branches: 1.45.12; 1.45.14;
Document the version cp first appeared.
Bump date.
 1.44  28-Jun-2015  wiz Add serial comma, use upper case for abbreviation, and remove apostrophe for plural.
 1.43  17-Dec-2013  apb In all man pages that say:

The -H, -L and -P options are ignored unless the -R option is
specified. In addition, these options override each other and the
command's actions are determined by the last one specified.

Add:

The default is as if the -P option had been specified.
 1.42  25-Mar-2012  wiz branches: 1.42.2;
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.
 1.41  03-Aug-2011  dholland branches: 1.41.2;
Adjust wording of previous and fix a couple grammar slipups/typos.
 1.40  03-Aug-2011  wiz New sentence, new line. Remove trailing whitespace. Bump date for previous.
 1.39  03-Aug-2011  manu iExplain what happens to extended attriutes when -p is used.
 1.38  02-Apr-2011  mbalmer Wording fixes from Ryo HAYASAKA, thanks.
 1.37  06-Feb-2011  wiz Put -l compatibility note in STANDARDS section.
 1.36  06-Feb-2011  darcy Add -l option to copy a tree as links.
Non-standard option similar to Gnutools cp(1)
Approved by core.
 1.35  24-Jan-2011  wiz Use Fx.
 1.34  24-Jan-2011  yamt document what -a is for
 1.33  22-Dec-2010  wiz branches: 1.33.2;
Sort option descriptions, bump date for -a.
 1.32  22-Dec-2010  christos Say that -a is non-standard and -P is the default.
 1.31  21-Dec-2010  christos Add -a archive flag. from Aleksey Cheusov
 1.30  26-Oct-2007  hira Sync SYNOPSIS with usage() (correct location of -P).
 1.29  16-Jul-2006  jschauma branches: 1.29.10;
return functionality backed out yesterday after fixing the bug I had
introduced before. A regression test will be added to src/regress
shortly.
 1.28  15-Jul-2006  jschauma The last commit introduced a bug. Revert until that's found and fixed.
 1.27  15-Jul-2006  jschauma As suggested on tech-userlevel:
"-R" claims:
-R [...] Created directories have the same mode as the corre-
sponding source directory, unmodified
by the process' umask.

Make this actually true.

In addition, make '-P' (no symbolic links are followed) apply even if
'-R' is not specified. This allows users to overwrite symbolic links
with files and/or to copy symbolic links over a file without indirecting
through the link (ie a copy of a link turns the target into a link, not
a copy of the file pointed to by the source).
 1.26  10-Sep-2005  wiz Sort options. Simplify macro usage. Use standard EXIT STATUS section.
 1.25  15-Aug-2005  elad Add and document -N: When used with -p, it will not copy the file flags.
PR 13645.
 1.24  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22249, verified by myself.
 1.23  21-Dec-2002  wiz For each, not Foreach; from Adrian Mrva. Begin new sentence on new line.
 1.22  18-Dec-2002  wiz Drop trailing whitespace.
 1.21  18-Dec-2002  kleink Add -v to SYNOPSIS, clean up STANDARDS a little. Also, bump date for -v.
 1.20  16-Dec-2002  jrf Added a -v verbose option to the cp(1) command. Updated man page and utils as well. This applies to PR bin/16834. This change was approved by Christos.
 1.19  08-Feb-2002  ross Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.18  20-Dec-2001  wiz Drop unnecessary .Pps.
 1.17  20-Dec-2001  wiz Whitespace nits.
 1.16  04-Sep-2000  kleink For commands and utilities, use EXIT STATUS rather than RETURN VALUES as
appropriate (and documented in mdoc(7)).
 1.15  28-Aug-2000  hubertf Add 'RETURN VALUE' section header.
 1.14  22-Mar-1999  garbled branches: 1.14.10;
More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.13  08-Oct-1998  wsanchez Fix bug where "cp -f" didn't work.
It's suppsed to remove the file and then copy, which it wasn't doing.
But no wait, it turns out that the described behaviour in the manual doesn't
agree with POSIX. So we change the above fix and the manual to "try copy, and
if fail, try remove, then copy".
Fix bug where "cp -R" didn't work on read-only directories:
It would make the directory, set the mode, and not be able to write files into it.
Don't bother mmap()ing files of zero length. Was a workaround for a bug in Rhapsody
mmap(), which didn't get along with such files, but makes sense anyway.
Fix race condition where "cp -p" would set the mod time of a file before close()ing
the file, which would update the mod time and therefore screw up the "-p" idea,
except, of course, while running in gdb, which sucked.
Add -f option to usage message in binary and man page. Already documented in man page.
 1.12  11-Oct-1997  enami Use .Nm "" instead of .Nm cp in SYNOPSIS.
 1.11  10-Oct-1997  lukem all but the first .Nm in SYNOPSIS need to be spelt out. [bin/4256]
 1.10  14-Sep-1997  lukem * getopt returns -1 not EOF
* cleanup use of .Nm in manpage
 1.9  25-Jul-1995  jtc Use "utility" instead of "command". Modern definitions of these terms
are distinct (See POSIX.2 glossary).

A utility is a executable, script or shell builtin; while a command
can be any of those things plus lists, pipelines, compound commands
(if, for, while) and shell function definitions.
 1.8  25-Jul-1995  jtc s/HISTORY/STANDARDS/; noted by Masanobu Saitoh in PR#1269
 1.7  21-Mar-1995  cgd convert to new RCS id conventions.
 1.6  22-Sep-1994  mycroft Merge 4.4-Lite version.
 1.5  07-Aug-1993  mycroft New version from uunet. Uses mmap().
 1.4  01-Aug-1993  mycroft Add RCS indentifiers.
 1.3  23-Mar-1993  cgd changed "Id" to "Header" for rcsids
 1.2  22-Mar-1993  cgd added rcs ids to all files
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  22-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.14.10.1  28-Aug-2000  hubertf Pull up to netbsd-1-5 branch, OK'd by thorpej:

Log Message:
> Add 'RETURN VALUE' section header.

Files & Revisionis:
> cvs rdiff -r1.19 -r1.20 basesrc/bin/cat/cat.1
> cvs rdiff -r1.12 -r1.13 basesrc/bin/chmod/chmod.1
> cvs rdiff -r1.14 -r1.15 basesrc/bin/cp/cp.1
> cvs rdiff -r1.8 -r1.9 basesrc/bin/dd/dd.1
> cvs rdiff -r1.9 -r1.10 basesrc/bin/echo/echo.1
> cvs rdiff -r1.11 -r1.12 basesrc/bin/expr/expr.1
> cvs rdiff -r1.25 -r1.26 basesrc/bin/ls/ls.1
> cvs rdiff -r1.10 -r1.11 basesrc/bin/mkdir/mkdir.1
> cvs rdiff -r1.23 -r1.24 basesrc/bin/mt/mt.1
> cvs rdiff -r1.12 -r1.13 basesrc/bin/mv/mv.1
> cvs rdiff -r1.16 -r1.17 basesrc/bin/pwd/pwd.1
> cvs rdiff -r1.9 -r1.10 basesrc/bin/rm/rm.1
> cvs rdiff -r1.11 -r1.12 basesrc/bin/rmdir/rmdir.1
> cvs rdiff -r1.35 -r1.36 basesrc/bin/sh/sh.1
> cvs rdiff -r1.11 -r1.12 basesrc/bin/sleep/sleep.1
> cvs rdiff -r1.20 -r1.21 basesrc/bin/stty/stty.1
 1.29.10.1  06-Nov-2007  matt sync with HEAD
 1.33.2.1  08-Feb-2011  bouyer Sync with HEAD
 1.41.2.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.41.2.1  17-Apr-2012  yamt sync with head
 1.42.2.1  19-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.45.14.3  21-Apr-2020  martin Ooops, restore accidently removed files from merge mishap
 1.45.14.2  21-Apr-2020  martin Sync with HEAD
 1.45.14.1  10-Jun-2019  christos Sync with HEAD
 1.45.12.1  26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts

RSS XML Feed