Use "grep -E" not "egrep".
Tom Lane <tgl@sss.pgh.pa.us>
Use "grep -E" not "egrep". "egrep" has never been in POSIX; the standard way to access this functionality is "grep -E". Recent versions of GNU grep have started to warn about this, so stop using "egrep". This could be back-patched, but I see little need to do so because the affected places are not code that runs during normal builds. (Perhaps src/backend/port/aix/mkldexport.sh is an exception, but let's wait to see if any AIX users complain before touching that.) Author: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Peter Eisentraut <peter@eisentraut.org> Discussion: https://postgr.es/m/473272.1778685870@sss.pgh.pa.us
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func/func-matching.sgml | modified | +2 −2 |
| src/backend/port/aix/mkldexport.sh | modified | +2 −2 |
| src/tools/find_typedef | modified | +3 −3 |
| src/tools/perlcheck/find_perl_files | modified | +1 −1 |
Discussion
- egrep is obsolescent 3 messages · 2026-05-13