5 Apr
2023
5 Apr
'23
21:16
On Montag, 3. April 2023 12:00:22 CEST Dominique Leuenberger wrote:
==== coreutils ==== Version update (9.1 -> 9.2) Subpackages: coreutils-lang
[...]
* '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'.) [...]
be warned: This might break lots of Makefiles and other scripts. cp -n and mv -n return 1, if *any* file to copy or move exists in the destination. I'm not sure, why this was introduced, because using -n originally should avoid a non zero return status.