diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2023-01-31 08:46:21 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2023-01-31 08:54:37 -0800 |
commit | 7a69df88999bedd8e9fccf9f3dfa9ac6907fab66 (patch) | |
tree | 0c0440fedeefcf03cc31424281f29af768aa0ff6 /NEWS | |
parent | 666a7fc1d5075807eac7e70f333febf1b99ee980 (diff) | |
download | coreutils-7a69df88999bedd8e9fccf9f3dfa9ac6907fab66.tar.gz |
cp,ln,mv: when skipping exit with nonzero status
* NEWS, doc/coreutils.texi: Document this.
* src/copy.c (copy_internal):
* src/ln.c (do_link): Return false when skipping action due to
--interactive or --no-clobber.
* tests/cp/cp-i.sh, tests/cp/preserve-link.sh:
* tests/cp/slink-2-slink.sh, tests/mv/i-1.pl, tests/mv/i-5.sh:
* tests/mv/mv-n.sh, tests/mv/update.sh:
Adjust expectations of exit status to match revised behavior.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -69,6 +69,11 @@ GNU coreutils NEWS -*- outline -*- 'cp --reflink=always A B' no longer leaves behind a newly created empty file B merely because copy-on-write clones are not supported. + 'cp -n' and 'mv -n' now exit with nonzero status if they skip their + action because the destination exists, and likewise for 'cp -i', + 'ln -i', and 'mv -i' when the user declines. (POSIX specifies this + for 'cp -i' and 'mv -i'.) + cp, mv, and install again read in multiples of the reported block size, to support unusual devices that may have this constraint. [behavior inadvertently changed in coreutils-7.2] |