diff --git a/src/cmd/rm/mod.rs b/src/cmd/rm/mod.rs index c4688d7..c90c059 100644 --- a/src/cmd/rm/mod.rs +++ b/src/cmd/rm/mod.rs @@ -321,7 +321,7 @@ impl AllActions { let mut reply = String::new(); let stdin = io::stdin(); let _read = stdin.read_line(&mut reply); - match reply.as_str() { + match reply.trim_end() { "y" | "Y" | "yes" | "Yes" => true, _ => false, }