On 2023-03-31 13:37, Sven Joachim wrote:
On 2023-03-31 13:01 -0700, Paul Eggert wrote:
part of the idea was to let shell programmers easily test whether
cp successfully copied the data.
By making them stop using the '-n' option, since they cannot rely on the
exit code anyway?
Portable code could not rely on the exit status anyway, as FreeBSD cp
agrees with the new GNU behavior, not the old. See:
https://bugs.gnu.org/61105
It was a messy situation where there was no perfect solution. That being
said, there is an advantage of consistency with FreeBSD, and the new GNU
behavior does avoid the race mentioned in Bug#61105.