mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
ln: use "replace" in interactive mode
GNU ln uses "replace" instead of "overwrite"
This commit is contained in:
+1
-1
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user