|
From: | Paul Eggert |
Subject: | bug#61105: cp/mv: want a fatal --no-clobber |
Date: | Mon, 30 Jan 2023 12:12:28 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
The reason it's a POSIX conformance issue is that POSIX says exit status zero means "All files were copied successfully." which "cp -n A B" does not do when B exists.
Similarly for 'mv' (though FreeBSD mv -i does not conform to POSIX here, unfortunately).
[Prev in Thread] | Current Thread | [Next in Thread] |