Skip to content

du: preserve suffix-only block size units - #13655

Open
wtcpython wants to merge 1 commit into
uutils:mainfrom
wtcpython:du-block-size-suffix
Open

wtcpython wants to merge 1 commit into
uutils:mainfrom
wtcpython:du-block-size-suffix

Conversation

@wtcpython

Copy link
Copy Markdown
Contributor

Fixes #13605.

Preserve unit suffixes for block sizes specified without a numeric prefix, including values from DU_BLOCK_SIZE, BLOCK_SIZE, and BLOCKSIZE. Numeric block sizes keep their existing output format.

@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/tail/retry (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/tail/tail-n0f (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/cut/bounded-memory (passes in this run but fails in the 'main' branch)
Note: The gnu test tests/printf/printf-surprise is now being skipped but was previously passing.
Congrats! The gnu test tests/seq/seq-epipe is now passing!

@codspeed-hq

codspeed-hq Bot commented Jul 30, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 8 untouched benchmarks
⏩ 410 skipped benchmarks1


Comparing wtcpython:du-block-size-suffix (84179b1) with main (c9077c7)

Open in CodSpeed

Footnotes

  1. 410 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@wtcpython
wtcpython force-pushed the du-block-size-suffix branch 4 times, most recently from e32b9e0 to ed84080 Compare August 10, 2026 15:00
@wtcpython
wtcpython force-pushed the du-block-size-suffix branch from ed84080 to 3787179 Compare August 14, 2026 03:19
@github-actions

github-actions Bot commented Aug 14, 2026

Copy link
Copy Markdown

Binary size comparison:

Individual binary size comparison VS main (threshold: >=5% AND >=4 KB).

Total size of compared binaries: 152.18 MB (+1004 KB, +0.65%)

Significant per-binary changes:
  comm     1.12 MB ->    2.33 MB  (+1.21 MB, +107.29%)

@wtcpython
wtcpython force-pushed the du-block-size-suffix branch from 3787179 to b0f102f Compare August 16, 2026 13:56
@wtcpython

Copy link
Copy Markdown
Contributor Author

Would you mind taking a look when convenient? Thanks!

@wtcpython
wtcpython force-pushed the du-block-size-suffix branch 2 times, most recently from c15bf43 to 5c139cf Compare August 24, 2026 11:32
@wtcpython
wtcpython force-pushed the du-block-size-suffix branch 3 times, most recently from 84baa46 to da537b5 Compare August 31, 2026 01:46
Copilot AI lite review requested due to automatic review settings September 14, 2026 06:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@wtcpython

Copy link
Copy Markdown
Contributor Author

@sylvestre ready

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 -BM behaves differently from GNU version

2 participants