mirror of
https://github.com/nushell/nushell.git
synced 2024-11-07 17:14:23 +01:00
fixes #12361 Looking at the condition, `TRASH_SUPPORTED && (trash || (rm_always_trash && !permanent))`, this code path seems only to run when `--trash` is enabled and `--permanent` is disabled. This suggests that the `--trash` suggestion is a mistake and should have suggested `--permanent`.
This commit is contained in:
parent
88ff622b16
commit
00b576b7f1
@ -382,7 +382,10 @@ fn rm(
|
||||
))]
|
||||
{
|
||||
trash::delete(&f).map_err(|e: trash::Error| {
|
||||
Error::new(ErrorKind::Other, format!("{e:?}\nTry '--trash' flag"))
|
||||
Error::new(
|
||||
ErrorKind::Other,
|
||||
format!("{e:?}\nTry '--permanent' flag"),
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user