* du: honor LC_NUMERIC for decimal separator
Route the fractional digit in `uucore::format::human::format_prefixed`
through `locale_decimal_separator()`, the same helper #11941 added for
`numfmt`. Fixes#11956.
* du: spell-check: ignore `replacen`
Matches the directive in `src/uu/numfmt/src/format.rs` for the same
helper introduced by #11941.
* du: propagate errors from --exclude-from instead of panicking
* du: update test_du with --exclude-from failures
* du: fix expected stderr in exclude-from read-error test
* du: Extend size_format flag override tests
* du: Extend size_override implementation for '-h' '--si' '-h' '--block-size'
* du: Extend size_format flag override tests
* du: Extend size_format override tests for correct error return with invalid block-size value regardless of override
* du: Refactor size-format parsing code
---------
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
* du: fix -l/--count-links option not counting hardlinks separately
* du: add test for -l/--count-links counting hardlinks separately
---------
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
- Make colorize() function private since only used internally
- Remove redundant colors_enabled checks
- Add apply_color helper closure to reduce code duplication
- Remove try_ prefix from function names for consistency
- Update all utilities to use renamed functions
- Fix app variable reference in mv utility
It turns out `du` used to test for the wrong thing, `ctime` is
the change timestamp, not creation time.
We have to rely on a regex again, as the change timestamp is the
current time.