Skip to content

use grep -E instead of egrep if possible#1424

Merged
mboelen merged 1 commit intoCISOfy:masterfrom
xambroz:egrep
Aug 7, 2023
Merged

use grep -E instead of egrep if possible#1424
mboelen merged 1 commit intoCISOfy:masterfrom
xambroz:egrep

Conversation

@xambroz
Copy link

@xambroz xambroz commented Jul 30, 2023

Hello,
recent /usr/bin/egrep on Linux systems is throwing annoying warning that egrep is obsolete and that grep -E is used instead.
To avoid this warning the EGREPBINARY is set to "${GREPBINARY} -E" if it has extended regexp in the "--help"
Best regards
Michal Ambroz

@konstruktoid
Copy link
Contributor

#1338

@mboelen
Copy link
Member

mboelen commented Aug 7, 2023

I have this feeling this will break on something like Solaris. Most likely --help is not even supported by those older implementations. At the same time, we have to move forward, so I will merge this.

@mboelen mboelen merged commit e816df5 into CISOfy:master Aug 7, 2023
@mboelen mboelen self-assigned this Aug 7, 2023
@D3vil0p3r
Copy link
Contributor

@mboelen The latest lynis stable version does not contain this warning fix, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants