1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-31 13:07:46 +00:00

ln: use "replace" in interactive mode

GNU ln uses "replace" instead of "overwrite"
This commit is contained in:
Daniel Hofstetter 2023-03-26 12:18:26 +02:00 committed by GitHub
parent 9d54ed02a8
commit aa4101fe2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -391,7 +391,7 @@ fn link(src: &Path, dst: &Path, settings: &Settings) -> UResult<()> {
match settings.overwrite {
OverwriteMode::NoClobber => {}
OverwriteMode::Interactive => {
if !prompt_yes!("overwrite {}?", dst.quote()) {
if !prompt_yes!("replace {}?", dst.quote()) {
return Err(LnError::SomeLinksFailed.into());
}