Message ID | 20220605040845.854206-1-sam@gentoo.org |
---|---|
Headers | show |
Series | Replace obsolete grep aliases | expand |
On 6/4/22 21:08, Sam James via Libc-alpha wrote:
> It looks like it was first required by POSIX in 2001.
Yes, it is safe nowadays to use 'grep -E' instead of egrep. The only
vendor-supported platform I know of where '/usr/bin/grep -E' does not
work is Solaris 10 (end-of-life January 2024), and that's easily fixed
by prepending /usr/xpg4/bin to PATH.
By the way, does glibc assume GNU grep? For example,
manual/check-safety.sh uses grep BREs with \| and \], both of which are
GNU extensions to POSIX. If this sort of thing is intended, INSTALL
should mention GNU or GNU-compatible grep under "Recommended Tools for
Compilation"; if not, glibc should stop assuming POSIX extensions like
\| and \] in its usage of build tools.