[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Use `grep -E/-F` instead of `egrep` and `fgrep`
From: |
Gavin Smith |
Subject: |
Re: [PATCH] Use `grep -E/-F` instead of `egrep` and `fgrep` |
Date: |
Mon, 11 Apr 2022 20:42:57 +0100 |
On Mon, Nov 15, 2021 at 12:04:40AM +0200, Ville Skyttä wrote:
> `egrep` and `fgrep` have been deprecated in GNU grep since 2007, and in
> current post 3.7 Git they have been made to emit obsolescence warnings:
> https://git.savannah.gnu.org/cgit/grep.git/commit/?id=a9515624709865d480e3142fd959bccd1c9372d1
> -# In case someone pedantic insists on using grep -E.
> -: ${EGREP=egrep}
> +: ${EGREP=grep -E}
I've had to change this to
: ${EGREP='grep -E'}
instead (with quotation marks) for shell portability, to avoid a
"Bad subsitution" error (tested on Solaris 10). Worth a note in case
similar changes had been made elsewhere.
https://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Shell-Substitutions.html
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH] Use `grep -E/-F` instead of `egrep` and `fgrep`,
Gavin Smith <=