Steffen Nurpmeso wrote in <20230302232616.zpamj%stef...@sdaoden.eu>: |Wietse Venema wrote in | <4psqj14z4nzj...@spike.porcupine.org>: ||Steffen Nurpmeso: ||> I do not think this has been reported already, on systems which ||> use GNU grep(1) postfix produces obsoletion messages. ||> ||> $ egrep x y ||> egrep: warning: egrep is obsolescent; using grep -E || ||This was updated months ago in Postfix 3.8 and on-line documentaton. ||There are no plans to issue patches for the stable releases. ... |Fyi, since you seem to like FreeBSD i posted to FreeBSD.. ... | It is because i have written to postfix-users with the subject | "(GNU) egrep is obsolescent" right before i read your commit: | ... |and Kyle Evans said | | I'd really prefer not to be annoying about it until we actually plan | to deprecate it, and I haven't seen a single call for removing it from | FreeBSD. | |while Warner Losh said | | I doubt egrep will ever be deprecated. Too many scripts depend on it. | And fixing this one is a drop in the bucket. I personally think the \ | warning | from gnu-grep is bananas...
However, in the meantime, Ed Maste said Agreed on both points. In the man page we have: ... That said, it's conceivable that this could end up invoking GNU egrep and thus emit a warning. It doesn't hurt to use grep -E instead. and then even commit e27ded83c76a609687a3d9e82b80fe7e1b782bf6 Author: Ed Maste <ema...@freebsd.org> AuthorDate: 2023-03-02 23:54:52 +0000 Commit: Ed Maste <ema...@freebsd.org> CommitDate: 2023-03-02 23:58:58 +0000 freebsd-update: use grep -E instead of egrep GNU egrep emits a warning that it is obsolescent and suggests grep -E instead. Switch to grep -E in case we end up invoking GNU (e)grep (and for consistency with other invocations in this file). So this was that. --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)