summaryrefslogtreecommitdiff
path: root/tests/run-debuginfod-response-headers.sh
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2022-10-27 18:34:54 +0200
committerMark Wielaard <mark@klomp.org>2022-10-27 18:34:54 +0200
commit73d016bde224af6d1be7c86fb2ea67af22f7582f (patch)
tree1f394025092d8b7f2cbe4278077962fb637181a2 /tests/run-debuginfod-response-headers.sh
parent6f1ec0ef46e067ac5169880317f37223e96c9732 (diff)
downloadelfutils-73d016bde224af6d1be7c86fb2ea67af22f7582f.tar.gz
Use grep -E instead of egrep, use grep -F instead of fgrep.
GNU grep 3.8 gives a deprecation warning when using egrep or fgrep. Just use grep -E and grep -F. Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'tests/run-debuginfod-response-headers.sh')
-rwxr-xr-xtests/run-debuginfod-response-headers.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run-debuginfod-response-headers.sh b/tests/run-debuginfod-response-headers.sh
index 63f2f241..8cb7b843 100755
--- a/tests/run-debuginfod-response-headers.sh
+++ b/tests/run-debuginfod-response-headers.sh
@@ -96,7 +96,7 @@ grep -i 'X-DEBUGINFOD-ARCHIVE: ' vlog-find$PORT1.2
for file in vlog-find$PORT1.1 vlog-find$PORT1.2
do
st_size=$(stat -c%s $(tail -n 1 $file))
- x_debuginfod_size=$(grep -i 'X-DEBUGINFOD-SIZE' $file | head -1 | egrep -o '[0-9]+')
+ x_debuginfod_size=$(grep -i 'X-DEBUGINFOD-SIZE' $file | head -1 | grep -E -o '[0-9]+')
test $st_size -eq $x_debuginfod_size
done