Project

General

Profile

Feature #11878

Want a native wc(1)

Added by Robert Mustacchi 9 months ago. Updated 8 months ago.

Status:
New
Priority:
Normal
Category:
cmd - userland programs
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

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.

History

#1

Updated by Robert Mustacchi 8 months 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.

Also available in: Atom PDF