Skip to content

Conversation

@cerdelen
Copy link
Contributor

@cerdelen cerdelen commented Feb 2, 2026

The flags for Block sizes ('m', 'b', 'k') are being overridden in GNU.

Fix: #10661

@cerdelen cerdelen marked this pull request as draft February 3, 2026 08:46
@github-actions
Copy link

github-actions bot commented Feb 3, 2026

GNU testsuite comparison:

Skip an intermittent issue tests/shuf/shuf-reservoir (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/sort/sort-stale-thread-mem (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/tail/inotify-dir-recreate (fails in this run but passes in the 'main' branch)

@cerdelen
Copy link
Contributor Author

cerdelen commented Feb 3, 2026

@spholz I wrote a function checking for the index of the flag 3 flags if present and applying the one with the highest index. The --apparent-size flag which is being set by -b is not affected by that as clap still parses it as present.

@cerdelen cerdelen marked this pull request as ready for review February 3, 2026 17:11
@spholz
Copy link

spholz commented Feb 3, 2026

Thanks! du -s -b -m works as expected now.

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.

du -b behavior doesn't match GNU du

2 participants