Updated rationale related to egrep (link added)

This commit is contained in:
Michael Boelen 2021-07-20 21:14:44 +02:00
parent 0b2c396a28
commit b361c57b8b
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
1 changed files with 6 additions and 1 deletions

View File

@ -9,4 +9,9 @@ Like to help? See CONTRIBUTING.md for more details.
Remove usage of `egrep` and `fgrep`. Replace with `grep` or `grep -E`.
Rationale: egrep/fgrep are deprecated. Although often linked on Linux distributions, here is an example where `egrep` is missing on an embedded Linux distribution: https://github.com/CISOfy/lynis/issues/1191
### Rationale:
The egrep/fgrep commands are deprecated. Although often linked on Linux distributions, here is an example where `egrep` is missing on an embedded Linux distribution: https://github.com/CISOfy/lynis/issues/1191
[The Open Group Base Specifications Issue 7, 2018 edition](https://pubs.opengroup.org/onlinepubs/9699919799/)
> This grep has been enhanced in an upwards-compatible way to provide the exact functionality of the historical egrep and fgrep commands as well. It was the clear intention of the standard developers to consolidate the three greps into a single command.