bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62572: cp --no-clobber behavior has changed


From: Paul Eggert
Subject: bug#62572: cp --no-clobber behavior has changed
Date: Fri, 31 Mar 2023 14:15:47 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]