Skip to content

Commit 056f04d

Browse files
nmaggionixiaoxiang781216
authored andcommitted
tools/mksymtab: Replace deprecated fgrep usages
In most modern distros, fgrep is deprecated in favor of "grep -F" Signed-off-by: Niccolò Maggioni <nicco.maggioni+nuttx@gmail.com>
1 parent fdf6f57 commit 056f04d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/mksymtab.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ if [ -z "$varlist" ]; then
7272
if [ ! -z "$execlist" ]; then
7373

7474
# Get all undefined symbol names
75-
varlist=`nm $execlist 2>/dev/null | fgrep ' U ' | sed -e "s/^[ ]*//g" | cut -d' ' -f2 | sort | uniq`
75+
varlist=`nm $execlist 2>/dev/null | grep -F ' U ' | sed -e "s/^[ ]*//g" | cut -d' ' -f2 | sort | uniq`
7676

7777
# Get all defined symbol names
78-
deflist=`nm $execlist 2>/dev/null | fgrep -v -e ' U ' -e ':' | sed -e "s/^[0-9a-z]* //g" | cut -d' ' -f2 | sort | uniq`
78+
deflist=`nm $execlist 2>/dev/null | grep -F -v -e ' U ' -e ':' | sed -e "s/^[0-9a-z]* //g" | cut -d' ' -f2 | sort | uniq`
7979

8080
# Remove the intersection between them, and the remaining symbols are found in the main image
8181
common=`echo "$varlist" | tr ' ' '\n' | grep -Fxf <(echo "$deflist" | tr ' ' '\n') | tr '\n' ' '`

0 commit comments

Comments
 (0)