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.
Glossing over the inabilities of our regex engine, our
grepis now very close to full POSIX compliance, it's just missing these options for providing multiple patterns:-edoesn'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.-freads patterns from a file.-e, and also how files should be read... all allow multiple patterns separated by line feeds, which should act as an OR match.