Bug 2211893 - Use of egrep cause complaints from grep (use -E)
Summary: Use of egrep cause complaints from grep (use -E)
Keywords:
Status: CLOSED ERRATA
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-09-28 00:19 UTC (History)
3 users (show)

Fixed In Version: lynis-3.0.9-3.fc39
Clone Of:
Environment:
Last Closed: 2023-09-28 00:19:38 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.

Comment 5 Fedora Update System 2023-09-19 17:29:01 UTC
FEDORA-2023-09a48c84a4 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-09a48c84a4

Comment 6 Fedora Update System 2023-09-20 02:07:32 UTC
FEDORA-2023-09a48c84a4 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-09a48c84a4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-09a48c84a4

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2023-09-28 00:19:38 UTC
FEDORA-2023-09a48c84a4 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


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