Skip to content

Commit

Permalink
use grep instead of the deprecated egrep (#46706)
Browse files Browse the repository at this point in the history
grep -E is the new (since POSIX) way to use the "extended" regexp.

The latest GNU Grep release complains each time egrep is invoked (egrep
is implemented as just a wrapper script around grep).

See:

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html

https://www.gnu.org/software/grep/manual/grep.html

Fixes #46649
  • Loading branch information
nsajko authored Sep 11, 2022
1 parent 5d9807d commit 81eb6ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ JLDFLAGS += $(SANITIZE_LDFLAGS)
endif # SANITIZE

TAR := $(shell which gtar 2>/dev/null || which tar 2>/dev/null)
TAR_TEST := $(shell $(TAR) --help 2>&1 | egrep 'bsdtar|strip-components')
TAR_TEST := $(shell $(TAR) --help 2>&1 | grep -E 'bsdtar|strip-components')
ifeq (,$(findstring components,$(TAR_TEST)))
ifneq (bsdtar,$(findstring bsdtar,$(TAR_TEST)))
$(error "please install either GNU tar or bsdtar")
Expand Down

0 comments on commit 81eb6ef

Please sign in to comment.