On 4/5/23 23:16, mh@mike.franken.de wrote:
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.
I don't see why would this break many Makefiles. Usually they're not using -n, but rather either nothing or -f, don't they? The reasoning for the change is consistency/portability, see the discussion at: https://debbugs.gnu.org/61105 Have a nice day, Berny