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

ls: handle invalid block size as GNU does #5626

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

cakebaker
Copy link
Contributor

If you provide an invalid block size with ls --block-size=invalid, GNU ls shows an error message and exits with a status code of 2. uutils ls, on the other hand, shows the same error message but also lists the content of the current folder. And the status code is 1. This PR adapts the handling of an invalid block size to match GNU's handling.

@uutils uutils deleted a comment from github-actions bot Dec 11, 2023
@uutils uutils deleted a comment from github-actions bot Dec 11, 2023
@sylvestre sylvestre merged commit 4442b35 into uutils:main Dec 11, 2023
53 of 55 checks passed
@cakebaker cakebaker deleted the ls_invalid_block_size branch December 11, 2023 06:50
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.

2 participants