summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2023-04-07 10:25:41 +0100
committerPádraig Brady <P@draigBrady.com>2023-04-08 12:11:58 +0100
commitf6c21f6d3addb6461c41af612e73fbb15d21545f (patch)
treed5079976206a43071ddd160672f95a200513adf1 /NEWS
parentdb28af406f311ac8f78604cc5906613866aecef5 (diff)
downloadcoreutils-f6c21f6d3addb6461c41af612e73fbb15d21545f.tar.gz
cp,mv: issue "skipped" messages when skipping files
* NEWS: Mention the change in behavior to issue a "not replaced" error diagnostic with -n, and the "skipped" message with -v. * src/copy.c (copy_internal): Adjust to output the "skipped" messages depending on -i, -n, -u. * tests/cp/cp-i.sh: Adjust accordingly. * tests/mv/mv-n.sh: Likewise.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS7
1 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index e4ed291b4..09dba0b80 100644
--- a/NEWS
+++ b/NEWS
@@ -27,6 +27,13 @@ GNU coreutils NEWS -*- outline -*-
wc will now diagnose if any total counts have overflowed.
[This bug was present in "the beginning".]
+** Changes in behavior
+
+ 'cp -n' and 'mv -n' now issue an error diagnostic if skipping a file,
+ to correspond with -n inducing a nonzero exit status as of coreutils 9.2.
+ Similarly 'cp -v' and 'mv -v' will output a message for each file skipped
+ due to -n, -i, or -u.
+
** New features
cp and mv now support --update=none to always skip existing files