cp,mv: skipping due to -u is success, not failure
commit01503ce7319b099d9deaeab43628e1b2b07a874a
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 31 Jan 2023 17:24:43 +0000 (31 09:24 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 31 Jan 2023 17:25:25 +0000 (31 09:25 -0800)
treebf8849754c05d2e92ed274a688755081a7952c15
parent7a69df88999bedd8e9fccf9f3dfa9ac6907fab66
cp,mv: skipping due to -u is success, not failure

This reverts the previous change, so that when a file
is skipped due to -u, this is not considered a failure.
* doc/coreutils.texi: Document this.
* src/copy.c (copy_internal): If --update says to skip,
treat this as success instead of failure.
* tests/mv/update.sh, tests/cp/slink-2-slink.sh:
Revert previous change, to match reverted behavior.
doc/coreutils.texi
src/copy.c
tests/cp/slink-2-slink.sh
tests/mv/update.sh