coreutils/tests/cp
Pádraig Brady 49912bac28 cp,mv: add --update=none-fail to fail if existing files
* src/cp.c (main): Add support for --update=none-fail to provide the
functionality of diagnosing files in the destination,
and exiting with failure status.
(usage): Mark -n as deprecated.
* src/mv.c: Likewise.
* src/copy.h: Add UPDATE_NONE_FAIL definition.
* src/system.h (emit_update_parameters_note): Add --update=none-fail
description.
* doc/coreutils.texi (cp invocation): Likewise.
Also mention why -n is deprecated.
* tests/mv/update.sh: Add a test case, including precedence
with -n and other --update options.
* tests/cp/cp-i.sh: Verify that --backup and --update=none{,-fail}
are mutually exclusive.
* tests/mv/mv-n.sh: Likewise.
* NEWS: Mention the new feature.
Addresses https://bugs.gnu.org/62572
2024-02-26 17:33:02 +00:00
..
abuse.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
acl.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
attr-existing.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
backup-1.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
backup-dir.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
backup-is-src.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
capability.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
copy-FMR.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
cp-a-selinux.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
cp-deref.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
cp-HL.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
cp-i.sh cp,mv: add --update=none-fail to fail if existing files 2024-02-26 17:33:02 +00:00
cp-mv-backup.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
cp-mv-enotsup-xattr.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
cp-parents.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
cross-dev-symlink.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
debug.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
deref-slink.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
dir-rm-dest.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
dir-slash.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
dir-vs-file.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
existing-perm-dir.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
existing-perm-race.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
fail-perm.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
file-perm-race.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
into-self.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
keep-directory-symlink.sh cp: add --keep-directory-symlink option 2024-02-22 14:37:47 +00:00
link-deref.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
link-heap.sh tests: make ulimit -v interact better with ASAN 2024-01-17 23:59:49 +00:00
link-no-deref.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
link-preserve.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
link-symlink.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
link.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
nfs-removal-race.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
no-ctx.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
no-deref-link1.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
no-deref-link2.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
no-deref-link3.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
parent-perm-race.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
parent-perm.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
perm.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
preserve-2.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
preserve-gid.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
preserve-link.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
preserve-mode.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
preserve-slink-time.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
proc-short-read.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
proc-zero-len.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
r-vs-symlink.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
reflink-auto.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
reflink-perm.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
same-file.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
slink-2-slink.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
sparse-2.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
sparse-extents-2.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
sparse-extents.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
sparse-perf.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
sparse-to-pipe.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
sparse.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
special-bits.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
special-f.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
src-base-dot.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
symlink-slash.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
thru-dangling.sh maint: update all copyright year number ranges 2024-01-01 13:27:23 +00:00
trailing-slash mv and "cp -r" no longer fail when invoked with two arguments 2006-09-08 17:08:53 +00:00