Bug 2211893 - Use of egrep cause complaints from grep (use -E)
Summary: Use of egrep cause complaints from grep (use -E)
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: lynis
Version: 38
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-02 13:52 UTC by John Dodson
Modified: 2023-08-16 18:04 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-07 13:40:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github CISOfy lynis issues 1338 0 None open egrep: warning: egrep is obsolescent; using grep -E 2023-06-22 18:43:51 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.