Created attachment 234396 [details] Patch for du -b Adds a '-b' flag to the du(1) utility (in /usr.bin/du) for displaying the total number of bytes in a file/directory, like the coreutils equivalent. I'm doing this simply by separating out a curbytes value from curblocks, and using that for operations when bflag is set. I'm aware the wc(1) utility offers similar functionality with the '-c' flag, but there are a few limitations that that solution carries (e.g. not being able to count total bytes of entire directories recursively). I've updated the manual page (along with adding the '-g' flag to places where it was missing), and also created a new testcase for it. (I have read UPDATING.) Good evening ;)
Keyword: patch or patch-ready – in lieu of summary line prefix: [patch] * bulk change for the keyword * summary lines may be edited manually (not in bulk). Keyword descriptions and search interface: <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>