public inbox for [email protected]  
help / color / mirror / Atom feed
From: Peter Eisentraut <[email protected]>
To: Tom Lane <[email protected]>
To: [email protected]
Subject: Re: egrep is obsolescent
Date: Wed, 13 May 2026 17:32:28 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

On 13.05.26 17:24, Tom Lane wrote:
> While running pgperltidy just now on my recently-updated
> Linux workstation, I got
> 
> $ src/tools/pgindent/pgperltidy .
> egrep: warning: egrep is obsolescent; using grep -E
> 
> OK, that's a bit in-your-face, but it's not inaccurate.
> AFAICT, "egrep" has never been in POSIX, while "grep -E"
> has been there at least since POSIX 2008.
> 
> So I propose the attached patch, which is just s/egrep/grep -E/g.

Looks good to me.

> I did not touch the two usages in port/aix/mkldexport.sh, though.
> I'm not sure what the standardization situation is in AIX, and
> this warning doesn't seem like something they'd do anyway.

It appears that those invocations don't actually need the "e" part of 
egrep, so they could just be grep?

> There is also a reference in configure, which is not a problem
> because it tries "grep -E" first.

Yeah, Autoconf addressed this some decades ago, so it should be fine.






view thread (3+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: egrep is obsolescent
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox