cp,mv: reinstate that -n exits with success if files skipped
commit9907b6f5dc3faf370c916c2f81bfcc3d06028e83
authorPádraig Brady <P@draigBrady.com>
Sat, 24 Feb 2024 19:51:56 +0000 (24 19:51 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 26 Feb 2024 17:33:02 +0000 (26 17:33 +0000)
treecfeb78590e8a194e1d34ec17b241188c4f469589
parent3bbdb39388cd0c5afdeb56e3048f90184cf07d6b
cp,mv: reinstate that -n exits with success if files skipped

* src/cp.c (main): Adjust so that -n will exit success if skipped files.
* src/mv.c (main): Likewise.
* doc/coreutils.texi (cp invocation): Adjust the description of -n.
* src/system.h (emit_update_parameters_note): Adjust --update=none
comparison.
* tests/cp/cp-i.sh: Adjust -n exit status checks.
* tests/mv/mv-n.sh: Likewise.
* NEWS: Mention the change in behavior.
Fixes https://bugs.gnu.org/62572
NEWS
doc/coreutils.texi
src/cp.c
src/mv.c
src/system.h
tests/cp/cp-i.sh
tests/mv/mv-n.sh