1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

expand: avoid an infinite loop

This commit is contained in:
Sylvestre Ledru 2024-01-05 21:44:58 +01:00
parent 8d24036f5c
commit 3d356d47b3
2 changed files with 17 additions and 2 deletions

View file

@ -409,3 +409,11 @@ int main() {
",
);
}
#[test]
fn test_expand_directory() {
new_ucmd!()
.args(&["."])
.fails()
.stderr_contains("expand: .: Is a directory");
}