On Thu, 2 Mar 2023 at 15:37, Warner Losh <[email protected]> wrote:
>
> 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...

Agreed on both points.

In the man page we have:
      -E, --extended-regexp
             Interpret pattern as an extended regular expression (i.e., force
             grep to behave as egrep).

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.

Reply via email to