Skip to content

cover -Z with normal filename prefixes #73

Description

@Abusalah0

The existing tests cover -Z with -l, but not with normal matching output.

When running:

grep -Z -H x f

grep should place a NUL byte between the filename and the matched line.

I verified this behavior in both uutils grep and GNU grep 3.12 and prepared a small test-only change.

Would this test coverage be useful ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions