Skip to content

Commit 247306b

Browse files
authored
Merge pull request #5899 from cakebaker/bump_wild
Bump wild from 2.2.0 to 2.2.1
2 parents 3362d8a + 74bcfff commit 247306b

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/by-util/test_rm.rs

+13
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,19 @@ fn test_rm_directory_without_flag() {
226226
.stderr_contains(&format!("cannot remove '{dir}': Is a directory"));
227227
}
228228

229+
#[test]
230+
#[cfg(windows)]
231+
// https://github.com/uutils/coreutils/issues/3200
232+
fn test_rm_directory_with_trailing_backslash() {
233+
let (at, mut ucmd) = at_and_ucmd!();
234+
let dir = "dir";
235+
236+
at.mkdir(dir);
237+
238+
ucmd.arg(".\\dir\\").arg("-rf").succeeds();
239+
assert!(!at.dir_exists(dir));
240+
}
241+
229242
#[test]
230243
fn test_rm_verbose() {
231244
let (at, mut ucmd) = at_and_ucmd!();

0 commit comments

Comments
 (0)