Project

General

Profile

Actions

Feature #11878

open

Want a native wc(1)

Added by Robert Mustacchi about 4 years ago. Updated almost 4 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

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.

Actions #1

Updated by Robert Mustacchi almost 4 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.

Actions

Also available in: Atom PDF