Skip to content

Commit 3b6796b

Browse files
committed
find_common_syms: use "grep -E" instead of "egrep"
Newer Linux systems are starting to emit warnings about using "egrep", and ask that we use "grep -E", instead. This patch tested on a system as old as RHEL 6; didn't bother checking a system older than that. Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
1 parent ceceeaf commit 3b6796b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/find_common_syms

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ sub object_find {
109109
# that turns out to be the case, we can try switching to "nm -P", which is
110110
# supposed to activate the "portable" (yet ugly) format. It's also unclear
111111
# at this point how common support for "nm -P" is.
112-
open(NM, '-|', "nm '${obj}' 2>/dev/null | egrep '\\s[cC]\\s'");
112+
open(NM, '-|', "nm '${obj}' 2>/dev/null | grep -E '\\s[cC]\\s'");
113113
SYMBOL: while (my $sym_line = <NM>) {
114114
if (!$all and is_allowlisted($sym_line)) {
115115
next SYMBOL;

0 commit comments

Comments
 (0)