Skip to content

grep: support -e, -f, multiple patterns in general #434

@klange

Description

@klange

Glossing over the inabilities of our regex engine, our grep is now very close to full POSIX compliance, it's just missing these options for providing multiple patterns:

  • -e doesn't really do anything, it just takes the place of the implicit pattern argument, and can be specified multiple times to provide multiple sets of patterns.
  • -f reads patterns from a file.
  • The pattern argument, and -e, and also how files should be read... all allow multiple patterns separated by line feeds, which should act as an OR match.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions