rmyorston / busybox-w32

WIN32 native port of BusyBox.
https://frippery.org/busybox
Other
693 stars 126 forks source link

Please add support for -B size of du #448

Open ale5000-git opened 2 months ago

ale5000-git commented 2 months ago

From du manual:

‘-B size’
‘--block-size=size’
Scale sizes by size before printing them (see [Block size](https://www.gnu.org/software/coreutils/manual/html_node/Block-size.html)). For example, -BG prints sizes in units of 1,073,741,824 bytes.

‘-b’
‘--bytes’
Equivalent to --apparent-size --block-size=1.

The -b option also apply --apparent-size, so there is currently no way to display bytes without also enable --apparent-size. It would be nice to be able to do this: du -s -B 1 -- folder_name

Upstream BusyBox is currently a bit silent, I wonder if this can be added directly in BusyBox for Windows.