Skip to content

ls: handle invalid block size as GNU does#5626

Merged
sylvestre merged 1 commit intouutils:mainfrom
cakebaker:ls_invalid_block_size
Dec 11, 2023
Merged

ls: handle invalid block size as GNU does#5626
sylvestre merged 1 commit intouutils:mainfrom
cakebaker:ls_invalid_block_size

Conversation

@cakebaker
Copy link
Copy Markdown
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.

@sylvestre sylvestre force-pushed the ls_invalid_block_size branch from 1df5ec6 to e9dc293 Compare December 8, 2023 18:19
@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
@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