Bug 2211893

Summary: Use of egrep cause complaints from grep (use -E)
Product: [Fedora] Fedora Reporter: John Dodson <jwadodson>
Component: lynisAssignee: Gwyn Ciesla <gwync>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: athmanem, gwync, i
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-07 13:40:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John Dodson 2023-06-02 13:52:06 UTC
Description of problem:
Use of egrep cause complaints from grep (use -E)
Please change instances of egrep to grep -E

Version-Release number of selected component (if applicable):
lynis    3.0.8-3.fc38

How reproducible:
Always

Steps to Reproduce:
1. run lynis
2. See lines...
220:        LANGUAGE=$(locale | egrep "^LANG=" | cut -d= -f2 | cut -d_ -f1 | tr -d '"' | egrep "^[a-z]{2}$")
223:            DISPLAY_LANG=$(locale | egrep "^LANG=" | cut -d= -f2)

3.

Actual results:
egrep: warning: egrep is obsolescent; using grep -E

Expected results:
No warning with use of grep -E


Additional info:

Comment 1 John Dodson 2023-08-07 06:12:47 UTC
Any news on this?

Comment 2 Gwyn Ciesla 2023-08-07 13:40:17 UTC
Fixed in rawhide.

Comment 3 John Dodson 2023-08-16 01:25:56 UTC
So will rawhide only manifest it's changes in FC39? or 40? or ...?

Comment 4 Gwyn Ciesla 2023-08-16 18:04:43 UTC
I'll build the fix for f40 and f39 when it's available.