You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
du -BM behaves differently from GNU version #13605
sveta@lemurr:~/src/thirdparty/coreutils$ du --version
du (uutils coreutils) 0.8.0
sveta@lemurr:~/src/thirdparty/coreutils$ du -BM | head
2 ./man
1 ./.git/refs/heads
1 ./.git/refs/tags
1 ./.git/refs/remotes/origin
1 ./.git/refs/remotes
1 ./.git/refs
1 ./.git/objects/info
51 ./.git/objects/pack
51 ./.git/objects
1 ./.git/logs/refs/heads
Here is the output of the GNU version:
sveta@lemurr:~/src/thirdparty/coreutils$ ./src/du --version
du (GNU coreutils) 9.11.131-68f15
Copyright (C) 2026 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Torbjörn Granlund, David MacKenzie, Paul Eggert,
and Jim Meyering.
sveta@lemurr:~/src/thirdparty/coreutils$ ./src/du -BM | head
2M ./man
1M ./.git/refs/heads
1M ./.git/refs/tags
1M ./.git/refs/remotes/origin
1M ./.git/refs/remotes
1M ./.git/refs
1M ./.git/objects/info
51M ./.git/objects/pack
51M ./.git/objects
1M ./.git/logs/refs/heads
Activity
sylvestre commentedon Jul 27, 2026
still happen on 0.9.0
lauchimoon commentedon Jul 30, 2026
Can confirm this also happens with other size units in latest uu:
I suspect it's because of the way
convert_sizedeals withSizeFormat::BlockSize, but I'm not entirely sure.