coreutils/doc
Pádraig Brady db28af406f cp,mv: add --update=none to always skip existing files
Add --update=none which is equivalent to the --no-clobber behavior
from before coreutils 9.2.  I.e. existing files are unconditionally
skipped, and them not being replaced does not affect the exit status.

* src/copy.h [enum Update_type]: A new type to support parameters
to the --update command line option.
[enum Interactive]: Add I_ALWAYS_SKIP.
* src/copy.c: Treat I_ALWAYS_SKIP like I_ALWAYS_NO (-n),
except that we don't fail when skipping.
* src/system.h (emit_update_parameters_note): A new function
to output the description of the new --update parameters.
* src/cp.c (main): Parse --update arguments, ensuring that
-n takes precedence if specified.
(usage): Describe the new option.  Also allude that
-u is related in the -n description.
* src/mv.c: Accept the new --update parameters and
update usage() accordingly.
* doc/coreutils.texi (cp invocation): Describe the new --update
parameters.  Also reference --update from the --no-clobber description.
(mv invocation): Likewise.
* tests/mv/update.sh: Test the new parameters.
* NEWS: Mention the new feature.
Addresses https://bugs.gnu.org/62572
2023-04-08 12:11:50 +01:00
..
.gitignore maint: copy FDL from gnulib instead of using it as module 2020-05-25 16:31:08 +02:00
coreutils.texi cp,mv: add --update=none to always skip existing files 2023-04-08 12:11:50 +01:00
fdl.texi build: update gnulib submodule to latest 2022-01-02 16:14:40 +00:00
local.mk maint: update all copyright year number ranges 2023-01-01 14:50:15 +00:00
perm.texi maint: update all copyright year number ranges 2023-01-01 14:50:15 +00:00
sort-version.texi maint: update all copyright year number ranges 2023-01-01 14:50:15 +00:00