]> git.ipfire.org Git - thirdparty/git.git/commit
check-non-portable-shell: detect obsolescent egrep/fgrep
authorEric Sunshine <sunshine@sunshineco.com>
Thu, 22 Sep 2022 00:18:25 +0000 (00:18 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Sep 2022 15:31:13 +0000 (08:31 -0700)
commit2b521630f93b79fc8cbe0fd63fb22879a11b5024
treeef8779204548a2b4bdd4dc783fe5d287921e14cb
parent75fc96d57e1262fe4b6bf87b5887e9103bcca7fb
check-non-portable-shell: detect obsolescent egrep/fgrep

GNU grep deprecated `egrep` and `fgrep` with release 2.5.3 in 2007.
As of release 3.8 in 2022, those commands warn[1] that they are
obsolescent. Now that all the Git test scripts have been scrubbed of
uses of `egrep` and `fgrep`, make `check-non-portable-shell` complain
about them to prevent new instances from creeping back into the project.

[1]: https://lists.gnu.org/archive/html/info-gnu/2022-09/msg00001.html

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/check-non-portable-shell.pl