-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
egrep: warning: egrep is obsolescent; using grep -E #1338
Comments
On what operating system and version are you running Lynis? |
Archlinux. |
man grep(1) on Ubuntu 20.04.5: |
Looks like we have some conversion to do. The reason to use @Obema12 Thanks for your feedback. Next time when you report an issue, please leave off the "Fix it at last." at the end of your issue. It sounds unfriendly, while it may or may not be intended. |
Just to clarify; |
Yup. Looks like someone decided to turn on this message in a recent version of the package that contains the related utilities. Similar messages show up, most of them are from this month. With Arch Linux using often the newest packages it is no surprise it pops up there first. So it definitely makes sense to convert now that the compatibility starts to break. |
@mboelen tried to be polite. But dozens of problems found and sent show that politeness does not achieve anything. I sent rougher questions and it got a much faster developer response. It got to the point that rudeness, published immediately after politeness, was decided immediately! Whereas the polite message remained open for months. I don't know how it works. |
So it was intended. In that case, let me be very clear: we have a Code of Conduct (listed here on GitHub, including under the comment form "Remember, contributions to this repository..."). The CoC states that we expect people to be welcoming and friendly within this community, and also my duties as a project owner. It would be nice to treat people how you want to be treated yourself. If you can't (or won't like to) accept these rules within the CoC, please don't be part of our community. |
There are countless executeables that behave differently according to how they are named. This whole deprecated thing is developers who can't find something useful to do. 30+ years of scripts with egrep and fgrep. If Linux folks keep this stuff up it will eventually be as nasty as Wyndoze. |
I guess I can set up a shell alias. :| |
@fw-ops-automation-imprivata were you success in writing that alias? I am looking for workaround too. |
@webcaptcha I tried right now. I add the alias in the bashrc, zshrc, root bashrc and root zshrc. Nothing worked :/ |
the warning message was introduced in gnu grep 3.8 |
Could we do a one-time test at the very beginning that checks whether |
agreed @jokeyrhyme and then replace `${EGREPBINARY} with a working command, so it doesn't need such a big rewrite. |
I added a |
This bug is still an issue. ** # |
https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xcu_chap04.html |
The execution of
lynis audit system
is accompanied by a whole bunch of messages related to grepFix it at last.
The text was updated successfully, but these errors were encountered: