coreutils/src/uu/wc
Gergely Kalas 4f043ff57f Fix 'wc' gnu test-suite compatibility #3678
This change will extract a utility already present in ls to uucore.
This utility is used by dir and vdir too, which are adjusted to
look it up in uucode. No further changes to ls, dir or dirv intended.

The change here largely fiddles with the output of uu_wc to match
that of GNU wc. This is the case to the extent to make unit tests
pass, however, there are differences remaining. One specific
difference I did not tackle is that GNU wc will not align the
output columns (compute_number_width() -> 1) in the specific case
of the input for --files0-from=- being a named pipe, not real stdin.
This difference can be triggered using the following two invocations.
  - wc --files0-from=- < files0 # use a named pipe, GNU does align
  - cat files0- | wc --files0-from=- # use real stdin, GNU does not
    align.
2022-07-01 16:43:09 +02:00
..
src Fix 'wc' gnu test-suite compatibility #3678 2022-07-01 16:43:09 +02:00
BENCHMARKING.md wc: Add benchmarking documentation 2021-08-26 01:38:16 +02:00
Cargo.toml build(deps): bump bytecount from 0.6.2 to 0.6.3 2022-06-06 10:07:55 +02:00
LICENSE Include license text in all published crates 2022-03-05 21:21:46 +01:00