Skip to content

avoid egrep obsolecent warning by switching to grep -E. #500

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ratmice
Copy link

@ratmice ratmice commented Apr 8, 2025

At some point GNU grep decided to deprecate the egrep utility in favor of grep -E.

# Full path to egrep given to avoid shell aliases.
$ /usr/bin/egrep 'whatever' /dev/null
egrep: warning: egrep is obsolescent; using grep -E

I haven't tested building on other platforms/operating systems, but given that posix grep does define
the -E argument to grep, but does not appear to require an egrep command it seems like
one should prefer it.

https://pubs.opengroup.org/onlinepubs/9799919799/utilities/grep.html#top

Copy link
Member

@ppannuto ppannuto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just checked, and this does work out of the box on a current OS X install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants