diff options
author | Pádraig Brady <P@draigBrady.com> | 2023-04-07 10:25:41 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2023-04-08 12:11:58 +0100 |
commit | f6c21f6d3addb6461c41af612e73fbb15d21545f (patch) | |
tree | d5079976206a43071ddd160672f95a200513adf1 /NEWS | |
parent | db28af406f311ac8f78604cc5906613866aecef5 (diff) | |
download | coreutils-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-- | NEWS | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |