Want a native wc(1)
cmd - userland programs
It would be nice if we had a wc that wasn't implemented in terms of ksh93. This implements it and adds support for a number of the options that have existed between the different GNU, ast, and *BSD wc programs. In addition, I've written a regression test suite that and made sure to include several broken multibyte cases so we can make sure that we properly determine those.
Updated by Robert Mustacchi over 3 years ago
To test this, I wrote the wctest test suite. I compared these tests to similar results with ksh93 and GNU's wc. I feel the test suite is a good representative set of things for the correctness of wc(1). The test suite helped uncover several bugs in the implementatoin. I also verified the rendering of the new manual page.