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:
parent
8d24036f5c
commit
3d356d47b3
2 changed files with 17 additions and 2 deletions
|
@ -409,3 +409,11 @@ int main() {
|
|||
",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_expand_directory() {
|
||||
new_ucmd!()
|
||||
.args(&["."])
|
||||
.fails()
|
||||
.stderr_contains("expand: .: Is a directory");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue