From 7df596a58cdfa763924487b8c275269de3497304 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 5 Jun 2022 12:09:02 -0700 Subject: grep: egrep -> grep -E, fgrep -> grep -F Newer versions of GNU grep (after grep 3.7, not inclusive) will warn on 'egrep' and 'fgrep' invocations. Convert usages within the tree to their expanded non-aliased counterparts to avoid irritating warnings during ./configure and the test suite. Signed-off-by: Sam James Reviewed-by: Fangrui Song --- io/ftwtest-sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io') diff --git a/io/ftwtest-sh b/io/ftwtest-sh index db82d48..174a3ab 100644 --- a/io/ftwtest-sh +++ b/io/ftwtest-sh @@ -268,7 +268,7 @@ $testprogram --skip-siblings=file@1b $tmpdir | regexp=`echo $(ls -U $tmp/$ftwtest/foo/lvl1b \ | sed -n '/file@1b$/,${/file[23]@1b$/p;}') | sed 's, ,|,'` catcmd=cat -[ -n "$regexp" ] && catcmd="egrep -v $regexp" +[ -n "$regexp" ] && catcmd="grep -E -v $regexp" $catcmd <