Skip to content

wc: implement --debug flag #9725

@asder8215

Description

@asder8215

In the GNU manual for wc, it contains a flag called --debug . The --debug flag currently prints the line count acceleration implementation being used to stderr.

In the failing test for wc wc-cpu.log, I looked into what wc-cpu.sh is testing for in GNU's upstream mirror (hope that's fine since it's not implementation related to wc). From my understanding, it's testing whether wc is outputting the same information to stdout with and without cpu disabling features. However, one of lines in the test code also invokes the wc command with --debug flag. I believe we're failing this test due to not supporting --debug flag in wc currently.

If we do plan on implementing this, this should be a quick and easy addition to the current wc program. Also note that this flag is not mentioned in GNU's wc --h (though it does exist and doesn't give me an error when I turn on the --debug flag in my terminal).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions