Unexpected side effect of -b option in du
Xabier Oneca -- xOneca
xoneca at gmail.com
Mon Sep 26 19:02:06 UTC 2022
Hi Evin,
The -b option to busybox's du seems to have an unexpected side effect of
> changing the default unit from kilobytes to bytes. Is this intended? If so,
> why?
>
coreutils' du --help says:
-b, --bytes equivalent to '--apparent-size --block-size=1'
So this seems pretty deliberate... ;)
> Also, the option is not listed in the syntax synopsis, `Usage: du
> [-aHLdclsxhmk] [FILE]...`, in --help output.
>
Yes, that may be a (little) bug. It is present in the full usage, but
missing in the trivial one.
Cheers,
Xabier Oneca_,,_
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20220926/140ce1df/attachment.html>
More information about the busybox
mailing list