Closed mooninite closed 1 year ago
The intended behavior is to copy only files that do not exist in the destination directory.
Well, the -n
switch is no longer usable for this case, so I guess we just have to copy those files first and expect them to be overwritten.
It still performs that copy as before, but instead of exiting with 0 it exits with 1. You may add "|| true" at the end of your command to retain the original behavior. Thanks for addressing it though.
I don't want actual errors to get lost though.
Coreutils 9.2 release notes:
https://github.com/coreutils/coreutils/blob/v9.2/NEWS#L88
Starting in 9.2, the 'cp' command and its '-n' option have different behavior.
Wine Mono uses "cp -n" in mono.make:
https://github.com/madewokherd/wine-mono/blob/develop/mono.make#L176
Fedora Rawhide compile (F39 / coreutils 9.3) output:
Fedora 38 compile (coreutils 9.1) output:
Coreutils 9.1: Does not output any error message. Exit code: 0
Coreutils 9.2 and higher: Outputs error message (that 9.1 and earlier should have displayed). Exit code: 1
Systems with Coreutils 9.2 and higher will fail to compile Wine Mono. This failure has existed forever so I am not sure what kind of behavior this copy command should accomplish. I'd appreciate any feedback. Thanks.