Skip to content

expand: stops when one of given files doesn't exist #5872

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

Closed
cakebaker opened this issue Jan 23, 2024 · 0 comments · Fixed by #5873
Closed

expand: stops when one of given files doesn't exist #5872

cakebaker opened this issue Jan 23, 2024 · 0 comments · Fixed by #5873
Labels

Comments

@cakebaker
Copy link
Contributor

GNU expand shows an error message when a file doesn't exist and continues work with the next given arguments, while uutils expand stops when an error occurs.

GNU expand:

$ echo "a" > a
$ expand a nonexisting a
a
expand: nonexisting: No such file or directory
a
$ echo $?
1

uutils expand:

$ echo "a" > a
$ cargo run expand a nonexisting a
a
expand: nonexisting: No such file or directory
$ echo $?
1

This issue is very similar to #5809

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

Successfully merging a pull request may close this issue.

1 participant