diff options
author | Đoàn Trần Công Danh <congdanhqx@gmail.com> | 2022-09-21 20:02:31 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-09-21 11:00:18 -0700 |
commit | 81580fa06d85ef519a46b0b225cebfe71c168a37 (patch) | |
tree | eb9a13854f1dfbd9d3aa84b51b73a1404c7a7d26 /t/perf | |
parent | a764c37bad6b4da2b248c30af1c251110fe1e031 (diff) | |
download | git-81580fa06d85ef519a46b0b225cebfe71c168a37.tar.gz |
t: convert egrep usage to "grep -E"
Despite POSIX states that:
> The old egrep and fgrep commands are likely to be supported for many
> years to come as implementation extensions, allowing historical
> applications to operate unmodified.
GNU grep 3.8 started to warn[1]:
> The egrep and fgrep commands, which have been deprecated since
> release 2.5.3 (2007), now warn that they are obsolescent and should
> be replaced by grep -E and grep -F.
Prepare for their removal in the future.
[1]: https://lists.gnu.org/archive/html/info-gnu/2022-09/msg00001.html
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/perf')
-rwxr-xr-x | t/perf/run | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/perf/run b/t/perf/run index 33da4d2aba..34115edec3 100755 --- a/t/perf/run +++ b/t/perf/run @@ -232,10 +232,10 @@ then ) elif test -n "$GIT_PERF_SUBSECTION" then - egrep "^$GIT_PERF_SUBSECTION\$" "$TEST_RESULTS_DIR"/run_subsections.names >/dev/null || + grep -E "^$GIT_PERF_SUBSECTION\$" "$TEST_RESULTS_DIR"/run_subsections.names >/dev/null || die "subsection '$GIT_PERF_SUBSECTION' not found in '$GIT_PERF_CONFIG_FILE'" - egrep "^$GIT_PERF_SUBSECTION\$" "$TEST_RESULTS_DIR"/run_subsections.names | while read -r subsec + grep -E "^$GIT_PERF_SUBSECTION\$" "$TEST_RESULTS_DIR"/run_subsections.names | while read -r subsec do ( GIT_PERF_SUBSECTION="$subsec" |