1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-12 10:22:38 +02:00

doc: mention the new mirroring behavior of cp -au

* NEWS: Mention the change in behavior.
* doc/coreutils.texi (cp invocation): Likewise.
This commit is contained in:
Pádraig Brady
2011-07-31 09:36:41 +01:00
parent e24c711cbc
commit 7eaff0fea3
2 changed files with 8 additions and 2 deletions

3
NEWS
View File

@@ -37,6 +37,9 @@ GNU coreutils NEWS -*- outline -*-
chmod, chown and chgrp now output the original attributes in messages,
when -v or -c specified.
cp -au (where --preserve=links is implicit) may now replace newer
files in the destination, to mirror hard links from the source.
** New features
md5sum accepts the new --strict option. With --check, it makes the

View File

@@ -7954,8 +7954,11 @@ same or newer modification time. If time stamps are being preserved,
the comparison is to the source time stamp truncated to the
resolutions of the destination file system and of the system calls
used to update time stamps; this avoids duplicate work if several
@samp{cp -pu} commands are executed with the same source and
destination.
@samp{cp -pu} commands are executed with the same source and destination.
If @option{--preserve=links} is also specified (like with @samp{cp -au}
for example), that will take precedence. Consequently, depending on the
order that files are processed from the source, newer files in the destination
may be replaced, to mirror hard links in the source.
@item -v
@itemx --verbose