Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expand: Continue work when one of given files doesn't exist #5873

Merged
merged 2 commits into from
Jan 25, 2024

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
58 of 61 checks passed
@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