Skip to content

Conversation

D9nni
Copy link
Contributor

@D9nni D9nni commented Jan 23, 2024

Should fix #5872
I also added the unit test.

Comment on lines 421 to 427
#[test]
fn test_nonexisting_file() {
new_ucmd!()
.args(&["with-trailing-tab.txt", "nonexistent", "with_spaces.txt"])
.fails()
.stderr_contains("expand: nonexistent: No such file or directory");
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test is incomplete because it should fail without the changes made to expand.rs.

Copy link
Contributor Author

@D9nni D9nni Jan 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I didn't pay enough atention when i wrote this. I'll solve it today.

@cakebaker cakebaker merged commit 61c730d into uutils:main Jan 25, 2024
@cakebaker
Copy link
Contributor

Thanks for your PR :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

expand: stops when one of given files doesn't exist
2 participants