Skip to content

Commit ee748cd

Browse files
seehearfeelborkmann
authored andcommitted
bpf, samples: Use "grep -E" instead of "egrep"
The latest version of grep (3.8+) claims the egrep is now obsolete so the build now contains warnings that look like: egrep: warning: egrep is obsolescent; using grep -E Fix this up by moving the related file to use "grep -E" instead. Signed-off-by: Tiezhu Yang <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Jiri Olsa <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent d1e9117 commit ee748cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/bpf/test_cgrp2_tc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ do_exit() {
115115
if [ "$DEBUG" == "yes" ] && [ "$MODE" != 'cleanuponly' ]
116116
then
117117
echo "------ DEBUG ------"
118-
echo "mount: "; mount | egrep '(cgroup2|bpf)'; echo
118+
echo "mount: "; mount | grep -E '(cgroup2|bpf)'; echo
119119
echo "$CGRP2_TC_LEAF: "; ls -l $CGRP2_TC_LEAF; echo
120120
if [ -d "$BPF_FS_TC_SHARE" ]
121121
then

0 commit comments

Comments
 (0)