]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
grep: egrep -> grep -E, fgrep -> grep -F
authorSam James <sam@gentoo.org>
Sun, 5 Jun 2022 19:09:02 +0000 (12:09 -0700)
committerFangrui Song <maskray@google.com>
Sun, 5 Jun 2022 19:09:02 +0000 (12:09 -0700)
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 <sam@gentoo.org>
Reviewed-by: Fangrui Song <maskray@google.com>
24 files changed:
Makefile
aclocal.m4
elf/Makefile
elf/tst-rtld-list-tunables.sh
iconvdata/big5.c
iconvdata/cns11643.c
iconvdata/cns11643l1.c
iconvdata/gb2312.c
iconvdata/gbk.c
iconvdata/jis0208.c
iconvdata/jis0212.c
iconvdata/ksc5601.c
iconvdata/sjis.c
iconvdata/uhc.c
io/ftwtest-sh
manual/libc-texinfo.sh
po/Makefile
scripts/check-c++-types.sh
scripts/documented.sh
sysdeps/arm/configure
sysdeps/arm/configure.ac
sysdeps/i386/configure
sysdeps/i386/tst-ld-sse-use.sh
sysdeps/ia64/fpu/import_check

index a9722a161c7038225c81de9e7929b53b8b53670a..179dd478ffa88495e98efbc4d69fa8d9ace3e336 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -565,10 +565,10 @@ $(objpfx)check-wrapper-headers.out: scripts/check-wrapper-headers.py $(headers)
 endif # $(headers)
 
 define summarize-tests
-@egrep -v '^(PASS|XFAIL):' $(objpfx)$1 || true
+@grep -E -v '^(PASS|XFAIL):' $(objpfx)$1 || true
 @echo "Summary of test results$2:"
 @sed 's/:.*//' < $(objpfx)$1 | sort | uniq -c
-@! egrep -q -v '^(X?PASS|XFAIL|UNSUPPORTED):' $(objpfx)$1
+@! grep -E -q -v '^(X?PASS|XFAIL|UNSUPPORTED):' $(objpfx)$1
 endef
 
 # The intention here is to do ONE install of our build into the
index 3e0bcdd12b77a3f1ae975afe0f7fe8981b753c10..3b4df4a371971a457eb155fb27a55354039a63e9 100644 (file)
@@ -280,7 +280,7 @@ int _start (void) { $2 return 0; }
 EOF
 if ! AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
                     $3 -nostdlib -nostartfiles
-                    -S conftest.c -o - | fgrep "$1"
+                    -S conftest.c -o - | grep -F "$1"
                     1>&AS_MESSAGE_LOG_FD])
 then
   libc_compiler_builtin_inlined=yes
index bfc9179fc5b94ac76b8d3367a1e02cce604c14f2..2b646a91e0ce0f285abf55a65a92920a98e816d0 100644 (file)
@@ -1315,7 +1315,7 @@ $(objpfx)librtld.mk: $(objpfx)librtld.map Makefile
        while read lib file; do \
          case $$lib in \
          libc_pic.a) \
-           LC_ALL=C fgrep -l /$$file \
+           LC_ALL=C grep -F -l /$$file \
                  $(common-objpfx)stamp.os $(common-objpfx)*/stamp.os | \
            LC_ALL=C \
            sed 's@^$(common-objpfx)\([^/]*\)/stamp\.os$$@rtld-\1'" +=$$file@"\
index 70875bb5ab9606c93be854a01af7559728d6941b..52a3464c32f6ed0bce411b6a32af467881e503a3 100755 (executable)
@@ -41,5 +41,5 @@ ${test_wrapper_env} \
 ${run_program_env} \
 $rtld --list-tunables \
 | sort -u \
-| egrep "(rtld|malloc)" \
+| grep -E "(rtld|malloc)" \
 | sed -e "s/0xf\+/0x[f]+/"
index 68c88cd78f81390495342e811c333c12665706ee..f469d415305aca58d1ad2b6616c03562fe37639a 100644 (file)
@@ -27,7 +27,7 @@
 /* Table for Big5 to UCS conversion. This is generated from the BIG5
    charmap, using the following command:
 
-       egrep "/x../x.." BIG5 | egrep -v "^% " | sed 's/%IRREVERSIBLE%//' | \
+       grep -E "/x../x.." BIG5 | grep -E -v "^% " | sed 's/%IRREVERSIBLE%//' | \
        perl segA.pl > segA
 
    where segA.pl script is:
@@ -3600,45 +3600,45 @@ static const char from_ucs4_tab1[256][2] =
 
 ---------------------------------------------------------------------
 rm -f segB2
-egrep "/x../x.." BIG5 | egrep -v "^%" | egrep "^<U02" | sort | \
+grep -E "/x../x.." BIG5 | grep -E -v "^%" | grep -E "^<U02" | sort | \
        perl segB2.pl 2 0x02C7 0x02D9 >> segB2
-egrep "/x../x.." BIG5 | egrep -v "^%" | egrep "^<U03" | sort | \
+grep -E "/x../x.." BIG5 | grep -E -v "^%" | grep -E "^<U03" | sort | \
        perl segB2.pl 3 0x0391 0x03C9 >> segB2
-egrep "/x../x.." BIG5 | egrep -v "^%" | egrep "^<U20[1-3]" | sort | \
+grep -E "/x../x.." BIG5 | grep -E -v "^%" | grep -E "^<U20[1-3]" | sort | \
        perl segB2.pl 4 0x2013 0x203B >> segB2
 
 ( Separate U20AC, U2103, U2105, U2109 )
 
-egrep "/x../x.." BIG5 | egrep -v "^%" | egrep "^<U216" | sort | \
+grep -E "/x../x.." BIG5 | grep -E -v "^%" | grep -E "^<U216" | sort | \
        perl segB2.pl 5 0x2160 0x2169 >> segB2
-egrep "/x../x.." BIG5 | egrep -v "^%" | egrep "^<U219" | sort | \
+grep -E "/x../x.." BIG5 | grep -E -v "^%" | grep -E "^<U219" | sort | \
        perl segB2.pl 6 0x2190 0x2199 >> segB2
-egrep "/x../x.." BIG5 | egrep -v "^%" | egrep "^<U22[1-6]" | sort | \
+grep -E "/x../x.." BIG5 | grep -E -v "^%" | grep -E "^<U22[1-6]" | sort | \
        perl segB2.pl 7 0x2215 0x2267 >> segB2
 
 ( Separate U2295, U2299, U22A5, U22BF )
 
-egrep "/x../x.." BIG5 | egrep -v "^%" | egrep "^<U2[56]" | sort | \
+grep -E "/x../x.." BIG5 | grep -E -v "^%" | grep -E "^<U2[56]" | sort | \
        perl segB2.pl 8 0x2500 0x2642 >> segB2
-egrep "/x../x.." BIG5 | egrep -v "^%" | egrep "^<U30" | sort | \
+grep -E "/x../x.." BIG5 | grep -E -v "^%" | grep -E "^<U30" | sort | \
        perl segB2.pl 9 0x3000 0x3029 >> segB2
-egrep "/x../x.." BIG5 | egrep -v "^%" | egrep "^<U31" | sort | \
+grep -E "/x../x.." BIG5 | grep -E -v "^%" | grep -E "^<U31" | sort | \
        perl segB2.pl 10 0x3105 0x3129 >> segB2
 
 ( Separate U32A3 )
 
-egrep "/x../x.." BIG5 | egrep -v "^%" | egrep "^<U33" | sort | \
+grep -E "/x../x.." BIG5 | grep -E -v "^%" | grep -E "^<U33" | sort | \
        perl segB2.pl 11 0x338E 0x33D5 >> segB2
-egrep "/x../x.." BIG5 | egrep -v "^%" | egrep "^<U[4-9]" | sort | \
+grep -E "/x../x.." BIG5 | grep -E -v "^%" | grep -E "^<U[4-9]" | sort | \
        perl segB2.pl 12 0x4E00 0x9FA4 >> segB2
-egrep "/x../x.." BIG5 | egrep -v "^%" | egrep "^<UF[678]" | sort | \
+grep -E "/x../x.." BIG5 | grep -E -v "^%" | grep -E "^<UF[678]" | sort | \
        perl segB2.pl 13 0xF6B1 0xF848 >> segB2
 
 ( Separate UFA0C, UFA0D )
 
-egrep "/x../x.." BIG5 | egrep -v "^%" | egrep "^<UFE" | sort | \
+grep -E "/x../x.." BIG5 | grep -E -v "^%" | grep -E "^<UFE" | sort | \
        perl segB2.pl 14 0xFE30 0xFE6B >> segB2
-egrep "/x../x.." BIG5 | egrep -v "^%" | egrep "^<UFF" | sort | \
+grep -E "/x../x.." BIG5 | grep -E -v "^%" | grep -E "^<UFF" | sort | \
        perl segB2.pl 15 0xFF01 0xFFE5 >> segB2
 ---------------------------------------------------------------------
 
index 8425b449aee09a2b9218200c73e21941ab7f8b41..5c41a4ab0a95852c82faff11673671eee200d715 100644 (file)
@@ -38,7 +38,7 @@
 
    The table can be generated using
 
-   egrep '^0x2' CNS11643.TXT |
+   grep -E '^0x2' CNS11643.TXT |
    awk '{print $1, $2}' | perl tab.pl
 
    where tab.pl is:
@@ -1979,7 +1979,7 @@ const uint16_t __cns11643l2_to_ucs4_tab[] =
 
    The table can be generated using
 
-   egrep '^0x3' CNS11643.TXT |
+   grep -E '^0x3' CNS11643.TXT |
    awk '{print $1, $2}' | perl tab.pl
 
    where tab.pl is:
@@ -3606,7 +3606,7 @@ const uint32_t __cns11643l3_to_ucs4_tab[] =
 
    The table can be generated using
 
-   egrep '^0x4' CNS11643.TXT |
+   grep -E '^0x4' CNS11643.TXT |
    awk '{print $1, $2}' | perl tab.pl
 
    where tab.pl is:
@@ -5456,7 +5456,7 @@ const uint32_t __cns11643l4_to_ucs4_tab[] =
 
    The table can be generated using
 
-   egrep '^0x5' CNS11643.TXT |
+   grep -E '^0x5' CNS11643.TXT |
    awk '{print $1, $2}' | perl tab.pl
 
    where tab.pl is:
@@ -7635,7 +7635,7 @@ const uint32_t __cns11643l5_to_ucs4_tab[] =
 
    The table can be generated using
 
-   egrep '^0x6' CNS11643.TXT |
+   grep -E '^0x6' CNS11643.TXT |
    awk '{print $1, $2}' | perl tab.pl
 
    where tab.pl is:
@@ -9260,7 +9260,7 @@ const uint32_t __cns11643l6_to_ucs4_tab[] =
 
    The table can be generated using
 
-   egrep '^0x7' CNS11643.TXT |
+   grep -E '^0x7' CNS11643.TXT |
    awk '{print $1, $2}' | perl tab.pl
 
    where tab.pl is:
@@ -10923,7 +10923,7 @@ const uint32_t __cns11643l7_to_ucs4_tab[] =
 
    The table can be generated using
 
-   egrep '^0xF' CNS11643.TXT |
+   grep -E '^0xF' CNS11643.TXT |
    awk '{print $1, $2}' | perl tab.pl
 
    where tab.pl is:
@@ -12633,8 +12633,8 @@ const uint32_t __cns11643l15_to_ucs4_tab[] =
    CJK Ideographs in the UCS plane 0: range U+3400..U+9FA5.
    The table can be created using
 
-   egrep '^0x' CNS11643.TXT |
-   awk '{ print $2, $1 }' | sort | egrep '^0x(3[4-9A-F]|[4-9])' | perl tab.pl
+   grep -E '^0x' CNS11643.TXT |
+   awk '{ print $2, $1 }' | sort | grep -E '^0x(3[4-9A-F]|[4-9])' | perl tab.pl
 
    where tab.pl is
 
@@ -24796,8 +24796,8 @@ const char __cns11643_from_ucs4p0_tab[][3] =
 /* CJK Ideographs in the UCS plane 2: range U+20000..U+2A6D6.
    The table can be created using
 
-   egrep '^0x' CNS11643.TXT |
-   awk '{ print $2, $1 }' | sort | egrep '^0x2[0-9A]... ' | perl tab.pl
+   grep -E '^0x' CNS11643.TXT |
+   awk '{ print $2, $1 }' | sort | grep -E '^0x2[0-9A]... ' | perl tab.pl
 
    where tab.pl is
 
@@ -39911,8 +39911,8 @@ const char __cns11643_from_ucs4p2_tab[][3] =
 /* CJK Compatibility Ideographs in the UCS plane 2: range U+2F800..U+2FA1D.
    The table can be created using
 
-   egrep '^0x' CNS11643.TXT |
-   awk '{ print $2, $1 }' | sort | egrep '^0x2F... ' | perl tab.pl
+   grep -E '^0x' CNS11643.TXT |
+   awk '{ print $2, $1 }' | sort | grep -E '^0x2F... ' | perl tab.pl
 
    where tab.pl is
 
index 839cc84f726c0a2a712cf2c8639f5a009ad324ca..96bd962ecc4292f11ffaa243cd79da147f35fed3 100644 (file)
@@ -32,7 +32,7 @@
 
    The table can be generated using
 
-   egrep '^0x1' CNS11643.TXT |
+   grep -E '^0x1' CNS11643.TXT |
    awk '{print $1, $2}' | perl tab.pl
 
    where tab.pl is:
@@ -1540,8 +1540,8 @@ const char __cns11643l1_from_ucs4_tab2[][2] =
 
 /* Greek alphabet.  The table can be created using
 
-   egrep '^0x1' CNS11643.TXT |
-   awk '{ print $2, $1 }' | sort | egrep '^0x03' | perl tab.pl
+   grep -E '^0x1' CNS11643.TXT |
+   awk '{ print $2, $1 }' | sort | grep -E '^0x03' | perl tab.pl
 
    where tab.pl is
 
@@ -1581,8 +1581,8 @@ const char __cns11643l1_from_ucs4_tab3[][2] =
 
 /* General punctuation.  The table can be created using
 
-   egrep '^0x1' CNS11643.TXT |
-   awk '{ print $2, $1 }' | sort | egrep '^0x20' | perl tab.pl
+   grep -E '^0x1' CNS11643.TXT |
+   awk '{ print $2, $1 }' | sort | grep -E '^0x20' | perl tab.pl
 
    where tab.pl is
 
@@ -1619,8 +1619,8 @@ const char __cns11643l1_from_ucs4_tab5[][2] =
 
 /* Mathematical operators.  The table can be created using
 
-   egrep '^0x1' CNS11643.TXT |
-   awk '{ print $2, $1 }' | sort | egrep '^0x22[1-6]' | perl tab.pl
+   grep -E '^0x1' CNS11643.TXT |
+   awk '{ print $2, $1 }' | sort | grep -E '^0x22[1-6]' | perl tab.pl
 
    where tab.pl is
 
@@ -1650,8 +1650,8 @@ const char __cns11643l1_from_ucs4_tab6[][2] =
 
 /* Graphic pictures for control codes.  The table can be created using
 
-   egrep '^0x1' CNS11643.TXT |
-   awk '{ print $2, $1 }' | sort | egrep '^0x24[0-2]' | perl tab.pl
+   grep -E '^0x1' CNS11643.TXT |
+   awk '{ print $2, $1 }' | sort | grep -E '^0x24[0-2]' | perl tab.pl
 
    where tab.pl is
 
@@ -1686,8 +1686,8 @@ const char __cns11643l1_from_ucs4_tab7[][2] =
 
 /* Circled and Parenthesized numbers.  The table can be created using
 
-   egrep '^0x1' CNS11643.TXT |
-   awk '{ print $2, $1 }' | sort | egrep '^0x24[67]' | perl tab.pl
+   grep -E '^0x1' CNS11643.TXT |
+   awk '{ print $2, $1 }' | sort | grep -E '^0x24[67]' | perl tab.pl
 
    where tab.pl is
 
@@ -1718,8 +1718,8 @@ const char __cns11643l1_from_ucs4_tab8[][2] =
 
 /* Circled and Parenthesized numbers.  The table can be created using
 
-   egrep '^0x1' CNS11643.TXT |
-   awk '{ print $2, $1 }' | sort | egrep '^0x2[56]' | perl tab.pl
+   grep -E '^0x1' CNS11643.TXT |
+   awk '{ print $2, $1 }' | sort | grep -E '^0x2[56]' | perl tab.pl
 
    where tab.pl is
 
@@ -1763,8 +1763,8 @@ const char __cns11643l1_from_ucs4_tab9[][2] =
 
 /* CJK punctuation and Hangzhou-style numerals.  The table can be created using
 
-   egrep '^0x1' CNS11643.TXT |
-   awk '{ print $2, $1 }' | sort | egrep '^0x30[0-2]' | perl tab.pl
+   grep -E '^0x1' CNS11643.TXT |
+   awk '{ print $2, $1 }' | sort | grep -E '^0x30[0-2]' | perl tab.pl
 
    where tab.pl is
 
@@ -1798,8 +1798,8 @@ const char __cns11643l1_from_ucs4_tab10[][2] =
 
 /* Squared latin abbreviations.  The table can be created using
 
-   egrep '^0x1' CNS11643.TXT |
-   awk '{ print $2, $1 }' | sort | egrep '^0x33' | perl tab.pl
+   grep -E '^0x1' CNS11643.TXT |
+   awk '{ print $2, $1 }' | sort | grep -E '^0x33' | perl tab.pl
 
    where tab.pl is
 
@@ -1827,8 +1827,8 @@ const char __cns11643l1_from_ucs4_tab11[][2] =
 
 /* CJK Ideographs.  The table can be created using
 
-   egrep '^0x1' CNS11643.TXT |
-   awk '{ print $2, $1 }' | sort | egrep '^0x[4-9]' | perl tab.pl
+   grep -E '^0x1' CNS11643.TXT |
+   awk '{ print $2, $1 }' | sort | grep -E '^0x[4-9]' | perl tab.pl
 
    where tab.pl is
 
@@ -3657,8 +3657,8 @@ const char __cns11643l1_from_ucs4_tab12[][2] =
 
 /* Glyphs for vertical variants.  The table can be created using
 
-   egrep '^0x' CNS11643.TXT |
-   awk '{ print $2, $1 }' | sort | egrep '^0xFE' | perl tab.pl
+   grep -E '^0x' CNS11643.TXT |
+   awk '{ print $2, $1 }' | sort | grep -E '^0xFE' | perl tab.pl
 
    where tab.pl is
 
@@ -3699,8 +3699,8 @@ const char __cns11643l1_from_ucs4_tab13[][2] =
 
 /* Fullwidth ASCII variants.  The table can be created using
 
-   egrep '^0x' CNS11643.TXT |
-   awk '{ print $2, $1 }' | sort | egrep '^0xFF[0-5]' | perl tab.pl
+   grep -E '^0x' CNS11643.TXT |
+   awk '{ print $2, $1 }' | sort | grep -E '^0xFF[0-5]' | perl tab.pl
 
    where tab.pl is
 
index 3bab2268a46a535112772d1b14ed4bf1b13d8baf..760040a7991cd6b0ba34b06383bcb340eeaf7754 100644 (file)
@@ -20,7 +20,7 @@
 
 /* The conversion table to UCS4 has almost no holes.  It can be generated with:
 
-   egrep '^0x' /mnt/cdrom/unix/mappings/eastasia/gb/gb2312.txt |
+   grep -E '^0x' /mnt/cdrom/unix/mappings/eastasia/gb/gb2312.txt |
    perl tab.pl
 
    where tab.pl is:
@@ -1918,8 +1918,8 @@ const char __gb2312_from_ucs4_tab1[][2] =
 
 /* The table can be created using
 
-   egrep '^0x' /mnt/cdrom/unix/mappings/eastasia/gb/gb2312.txt |
-   awk '{ print $2, $1 }' | sort | egrep '^0x03' | perl tab.pl
+   grep -E '^0x' /mnt/cdrom/unix/mappings/eastasia/gb/gb2312.txt |
+   awk '{ print $2, $1 }' | sort | grep -E '^0x03' | perl tab.pl
 
    where tab.pl is
 
@@ -1959,8 +1959,8 @@ const char __gb2312_from_ucs4_tab2[][2] =
 
 /* The table can be created using
 
-   egrep '^0x' /mnt/cdrom/unix/mappings/eastasia/gb/gb2312.txt |
-   awk '{ print $2, $1 }' | sort | egrep '^0x04' | perl tab.pl
+   grep -E '^0x' /mnt/cdrom/unix/mappings/eastasia/gb/gb2312.txt |
+   awk '{ print $2, $1 }' | sort | grep -E '^0x04' | perl tab.pl
 
    where tab.pl is
 
@@ -2006,8 +2006,8 @@ const char __gb2312_from_ucs4_tab3[][2] =
 
 /* The table can be created using
 
-   egrep '^0x' /mnt/cdrom/unix/mappings/eastasia/gb/gb2312.txt |
-   awk '{ print $2, $1 }' | sort | egrep '^0x20' | perl tab.pl
+   grep -E '^0x' /mnt/cdrom/unix/mappings/eastasia/gb/gb2312.txt |
+   awk '{ print $2, $1 }' | sort | grep -E '^0x20' | perl tab.pl
 
    where tab.pl is
 
@@ -2035,8 +2035,8 @@ const char __gb2312_from_ucs4_tab4[][2] =
 
 /* The table can be created using
 
-   egrep '^0x' /mnt/cdrom/unix/mappings/eastasia/gb/gb2312.txt |
-   awk '{ print $2, $1 }' | sort | egrep '^0x2[12]' | perl tab.pl
+   grep -E '^0x' /mnt/cdrom/unix/mappings/eastasia/gb/gb2312.txt |
+   awk '{ print $2, $1 }' | sort | grep -E '^0x2[12]' | perl tab.pl
 
    where tab.pl is
 
@@ -2076,8 +2076,8 @@ const char __gb2312_from_ucs4_tab5[][2] =
 
 /* The table can be created using
 
-   egrep '^0x' /mnt/cdrom/unix/mappings/eastasia/gb/gb2312.txt |
-   awk '{ print $2, $1 }' | sort | egrep '^0x24' | perl tab.pl
+   grep -E '^0x' /mnt/cdrom/unix/mappings/eastasia/gb/gb2312.txt |
+   awk '{ print $2, $1 }' | sort | grep -E '^0x24' | perl tab.pl
 
    where tab.pl is
 
@@ -2118,8 +2118,8 @@ const char __gb2312_from_ucs4_tab6[][2] =
 
 /* The table can be created using
 
-   egrep '^0x' /mnt/cdrom/unix/mappings/eastasia/gb/gb2312.txt |
-   awk '{ print $2, $1 }' | sort | egrep '^0x3[01]' | perl tab.pl
+   grep -E '^0x' /mnt/cdrom/unix/mappings/eastasia/gb/gb2312.txt |
+   awk '{ print $2, $1 }' | sort | grep -E '^0x3[01]' | perl tab.pl
 
    where tab.pl is
 
@@ -2219,8 +2219,8 @@ const char __gb2312_from_ucs4_tab7[][2] =
 
 /* The table can be created using
 
-   egrep '^0x' /mnt/cdrom/unix/mappings/eastasia/gb/gb2312.txt |
-   awk '{ print $2, $1 }' | sort | egrep '^0x[4-9]' | perl tab.pl
+   grep -E '^0x' /mnt/cdrom/unix/mappings/eastasia/gb/gb2312.txt |
+   awk '{ print $2, $1 }' | sort | grep -E '^0x[4-9]' | perl tab.pl
 
    where tab.pl is
 
@@ -4499,8 +4499,8 @@ const char __gb2312_from_ucs4_tab8[][2] =
 
 /* The table can be created using
 
-   egrep '^0x' /mnt/cdrom/unix/mappings/eastasia/gb/gb2312.txt |
-   awk '{ print $2, $1 }' | sort | egrep '^0xFF[0-5]' | perl tab.pl
+   grep -E '^0x' /mnt/cdrom/unix/mappings/eastasia/gb/gb2312.txt |
+   awk '{ print $2, $1 }' | sort | grep -E '^0xFF[0-5]' | perl tab.pl
 
    where tab.pl is
 
index 97717181f457ca62b9bc60cb3512718c83f76553..53e865e74a062429d44c71fe56ac0232f566e4c9 100644 (file)
@@ -5543,7 +5543,7 @@ static const uint16_t __gbk_to_ucs[] =
 
 /* The table can be created using
 
-   awk '{ print $2, $1 }' gbk.txt | sort | egrep '^0x00' | perl tab.pl
+   awk '{ print $2, $1 }' gbk.txt | sort | grep -E '^0x00' | perl tab.pl
 
    where tab.pl is
 
@@ -5574,7 +5574,7 @@ static const char __gbk_from_ucs4_tab1[][2] =
 
 /* The table can be created using
 
-   awk '{ print $2, $1 }' gbk.txt | sort | egrep '^0x03' | perl tab.pl
+   awk '{ print $2, $1 }' gbk.txt | sort | grep -E '^0x03' | perl tab.pl
 
    where tab.pl is
 
@@ -5614,7 +5614,7 @@ static const char __gbk_from_ucs4_tab2[][2] =
 
 /* The table can be created using
 
-   awk '{ print $2, $1 }' gbk.txt | sort | egrep '^0x04' | perl tab.pl
+   awk '{ print $2, $1 }' gbk.txt | sort | grep -E '^0x04' | perl tab.pl
 
    where tab.pl is
 
@@ -5660,7 +5660,7 @@ static const char __gbk_from_ucs4_tab3[][2] =
 
 /* The table can be created using
 
-   awk '{ print $2, $1 }' gbk.txt | sort | egrep '^0x20' | perl tab.pl
+   awk '{ print $2, $1 }' gbk.txt | sort | grep -E '^0x20' | perl tab.pl
 
    where tab.pl is
 
@@ -5690,7 +5690,7 @@ static const char __gbk_from_ucs4_tab4[][2] =
 
 /* The table can be created using
 
-   awk '{ print $2, $1 }' gbk.txt | sort | egrep '^0x2[12]' | perl tab.pl
+   awk '{ print $2, $1 }' gbk.txt | sort | grep -E '^0x2[12]' | perl tab.pl
 
    where tab.pl is
 
@@ -5738,7 +5738,7 @@ static const char __gbk_from_ucs4_tab5[][2] =
 
 /* The table can be created using
 
-   awk '{ print $2, $1 }' gbk.txt | sort | egrep '^0x2[4-6]' | perl tab.pl
+   awk '{ print $2, $1 }' gbk.txt | sort | grep -E '^0x2[4-6]' | perl tab.pl
 
    where tab.pl is
 
@@ -5829,7 +5829,7 @@ static const char __gbk_from_ucs4_tab6[][2] =
 
 /* The table can be created using
 
-   awk '{ print $2, $1 }' gbk.txt | sort | egrep '^0x3[0-3]' | perl tab.pl
+   awk '{ print $2, $1 }' gbk.txt | sort | grep -E '^0x3[0-3]' | perl tab.pl
 
    where tab.pl is
 
@@ -5943,7 +5943,7 @@ static const char __gbk_from_ucs4_tab7[][2] =
 
 /* The table can be created using
 
-   awk '{ print $2, $1 }' gbk.txt | sort | egrep '^0x[4-9]' | perl tab.pl
+   awk '{ print $2, $1 }' gbk.txt | sort | grep -E '^0x[4-9]' | perl tab.pl
 
    where tab.pl is
 
@@ -12935,7 +12935,7 @@ static const char __gbk_from_ucs4_tab8[][2] =
 
 /* The table can be created using
 
-   awk '{ print $2, $1 }' gbk.txt | sort | egrep '^0xE[78]' | perl tab.pl
+   awk '{ print $2, $1 }' gbk.txt | sort | grep -E '^0xE[78]' | perl tab.pl
 
    where tab.pl is
 
@@ -12993,7 +12993,7 @@ static const char __gbk_from_ucs4_tab9[][2] =
 
 /* The table can be created using
 
-   awk '{ print $2, $1 }' gbk.txt | sort | egrep '^0xFA[0-2]' | perl tab.pl
+   awk '{ print $2, $1 }' gbk.txt | sort | grep -E '^0xFA[0-2]' | perl tab.pl
 
    where tab.pl is
 
@@ -13023,7 +13023,7 @@ static const char __gbk_from_ucs4_tab10[][2] =
 
 /* The table can be created using
 
-   awk '{ print $2, $1 }' gbk.txt | sort | egrep '^0xFE[3-6]' | perl tab.pl
+   awk '{ print $2, $1 }' gbk.txt | sort | grep -E '^0xFE[3-6]' | perl tab.pl
 
    where tab.pl is
 
@@ -13065,7 +13065,7 @@ static const char __gbk_from_ucs4_tab11[][2] =
 
 /* The table can be created using
 
-   awk '{ print $2, $1 }' gbk.txt | sort | egrep '^0xFF[0-5]' | perl tab.pl
+   awk '{ print $2, $1 }' gbk.txt | sort | grep -E '^0xFF[0-5]' | perl tab.pl
 
    where tab.pl is
 
index 4bfc68d66c0f82906f7a7a6ee8bc742205c329ef..e2940113df350c9ad1017eeeccafc081b0ae1e1f 100644 (file)
@@ -38,7 +38,7 @@
    It's not worth trying to use these gaps.  The table can be generated
    using
 
-   egrep '^0x' < .../eastasia/jis/jis0208.txt |
+   grep -E '^0x' < .../eastasia/jis/jis0208.txt |
    perl tab.pl
 
    with tab.pl containing:
@@ -1800,8 +1800,8 @@ const char __jisx0208_from_ucs4_lat1[JIS0208_LAT1_MAX + 1
 
 /* The following table can be generated using
 
-   egrep '^0x' < .../eastasia/jis/jis0208.txt |
-   awk '{ print $3, $2}' | egrep '^0x0[34]' | sort -u | perl tab.pl
+   grep -E '^0x' < .../eastasia/jis/jis0208.txt |
+   awk '{ print $3, $2}' | grep -E '^0x0[34]' | sort -u | perl tab.pl
 
    where tab.pl contains:
 
@@ -1868,8 +1868,8 @@ const char __jisx0208_from_ucs4_greek[0xc1][2] =
    unpredictable place and size.  Therefore we use a table which maps
    ranges to idexes in a table.  This table ca be generated with:
 
-   egrep '^0x' < .../eastasia/jis/jis0208.txt | awk '{ print $3, $2}' |
-   egrep '^0x[^01]' | sort -u | perl tab.pl
+   grep -E '^0x' < .../eastasia/jis/jis0208.txt | awk '{ print $3, $2}' |
+   grep -E '^0x[^01]' | sort -u | perl tab.pl
 
    where tab.pl is
 
@@ -2610,8 +2610,8 @@ const struct jisx0208_ucs_idx __jisx0208_from_ucs_idx[] =
    therefore indexed using UCS with leaving large gaps out.  It can
    be computed with
 
-   egrep '^0x' < .../eastasia/jis/jis0208.txt | awk '{ print $3, $2}' |
-   egrep '^0x[^01]' | sort -u | perl tag.pl
+   grep -E '^0x' < .../eastasia/jis/jis0208.txt | awk '{ print $3, $2}' |
+   grep -E '^0x[^01]' | sort -u | perl tag.pl
 
    where tab.pl is
 
index 5799cd7b6048a63a19f391140d042bf1f3f85a54..5ca559a76fca85d0f356af49af37f49d809502db 100644 (file)
@@ -25,7 +25,7 @@
    char in a table resulting in an index to a table with the UCS.  The
    following command can be used to generate the table:
 
-   egrep '^0x[[:xdigit:]][[:xdigit:]][[:xdigit:]][[:xdigit:]]' \
+   grep -E '^0x[[:xdigit:]][[:xdigit:]][[:xdigit:]][[:xdigit:]]' \
      .../eastasia/jis/jis0212.txt | perl tab.pl
 
    where tab.pl is
@@ -71,7 +71,7 @@ const struct jisx0212_idx __jisx0212_to_ucs_idx[] =
 /* The table which the UCS values indexed by the table above can be
    generated using the following code:
 
-   egrep '^0x[[:xdigit:]][[:xdigit:]][[:xdigit:]][[:xdigit:]]' \
+   grep -E '^0x[[:xdigit:]][[:xdigit:]][[:xdigit:]][[:xdigit:]]' \
      .../eastasia/jis/jis0212.txt | perl tab.pl
 
    where tab.pl is:
@@ -876,7 +876,7 @@ const uint16_t __jisx0212_to_ucs[] =
    use again a two-step mapping table.  The index table can be computed
    using
 
-   egrep '^0x[[:xdigit:]][[:xdigit:]][[:xdigit:]][[:xdigit:]]' \
+   grep -E '^0x[[:xdigit:]][[:xdigit:]][[:xdigit:]][[:xdigit:]]' \
      ../eastasia/jis/jis0212.txt | awk '{ print $2, $1 }' | sort -u |
    perl tab.pl
 
@@ -1657,7 +1657,7 @@ const struct jisx0212_idx __jisx0212_from_ucs_idx[] =
 
 /* The values corresponding to the table can be computed using
 
-    egrep '^0x[[:xdigit:]][[:xdigit:]][[:xdigit:]][[:xdigit:]]' \
+    grep -E '^0x[[:xdigit:]][[:xdigit:]][[:xdigit:]][[:xdigit:]]' \
       .../eastasia/jis/jis0212.txt | awk '{ print $2, $1 }' |
     sort -u | perl tab.pl
 
index 922ec8b0c5adc0798fe82ab2427f09995565a594..533f7bca171d3f57c1ce6f174f99a8ad6d726175 100644 (file)
@@ -20,8 +20,8 @@
 #include "ksc5601.h"
 
 /*
-egrep  '# HANGUL SYLL' < /cdrom/unix/mappings/eastasia/ksc/ksc5601.txt | \
-egrep -v '^0x[4-9AD-F]' | egrep -v '^0x..([4-9].|A0)' | \
+grep -E '# HANGUL SYLL' < /cdrom/unix/mappings/eastasia/ksc/ksc5601.txt | \
+grep -E -v '^0x[4-9AD-F]' | grep -E -v '^0x..([4-9].|A0)' | \
 perl tab21.pl > ksc_hangul1.tb
 
 ----------
@@ -350,7 +350,7 @@ const uint16_t __ksc5601_hangul_to_ucs[KSC5601_HANGUL]=
     and UCS-4. It's used to convert symbols in  EUC-KR, ISO-2022-KR,
     Johab, UHC to UCS-4.
 
-egrep '^0xA[1-C]' < /cdrom/unix/mappings/eastasia/ksc/ksc5601.txt | \
+grep -E '^0xA[1-C]' < /cdrom/unix/mappings/eastasia/ksc/ksc5601.txt | \
 grep -v '# HANGUL SYLLABLE' | perl tab11.pl  > ksc_sym1.tb
 
    $n=0;
@@ -624,7 +624,7 @@ const uint16_t __ksc5601_sym_to_ucs[] =
 
  Mapping table from UCS4 to symbols defined in KS C 5601-1987.
 
-egrep '^0xA[1-C]' /cdrom/unix/mappings/eastasia/ksc/ksc5601.txt | \
+grep -E '^0xA[1-C]' /cdrom/unix/mappings/eastasia/ksc/ksc5601.txt | \
 grep -v '# HANGUL SYLLABLE' | awk '{print $2, $1}' | sort -u |
 perl tab12.pl > ksc_sym2.tb
 
@@ -981,7 +981,7 @@ const struct map __ksc5601_sym_from_ucs[KSC5601_SYMBOL] =
 };
 
 /*
-egrep  '^0x.*# <CJK>' < /cdrom/unix/mappings/eastasia/ksc/ksc5601.txt | \
+grep -E '^0x.*# <CJK>' < /cdrom/unix/mappings/eastasia/ksc/ksc5601.txt | \
 perl tab21.pl > ksc_hanja1.tb
 
 
@@ -1613,7 +1613,7 @@ const uint16_t __ksc5601_hanja_to_ucs[KSC5601_HANJA]=
 };
 
 /*
-egrep  '^0x.*# <CJK>' < /cdrom/unix/mappings/eastasia/ksc/ksc5601.txt | \
+grep -E '^0x.*# <CJK>' < /cdrom/unix/mappings/eastasia/ksc/ksc5601.txt | \
 awk '{print $2,$1}' | sort -u | perl tab12.pl > ksc_hanja2.tb
 
    $n=0;
index 5aea18b314c9e57c5eabce7770ba16da78fcc8af..e4f143813aaf73e65d6cdf10ab19cb231bcfe717 100644 (file)
@@ -26,7 +26,7 @@
    from the Unicode CD (also available on their FTP server) using
    the command
 
-       egrep '^0x8[01234][[:xdigit:]][[:xdigit:]]' \
+       grep -E '^0x8[01234][[:xdigit:]][[:xdigit:]]' \
          /mnt/cdrom/unix/mappings/eastasia/jis/shiftjis.txt | perl ~/sjis.pl
 
    where sjis.pl contains:
@@ -185,7 +185,7 @@ static const uint16_t cjk_block1[703] =
    from the Unicode CD (also available on their FTP server) using
    the command
 
-       egrep '^0x8[89][[:xdigit:]][[:xdigit:]]' \
+       grep -E '^0x8[89][[:xdigit:]][[:xdigit:]]' \
          /mnt/cdrom/unix/mappings/eastasia/jis/shiftjis.txt | perl ~/sjis.pl
 
    where sjis.pl contains:
@@ -235,7 +235,7 @@ static const uint16_t cjk_block2[94] =
    from the Unicode CD (also available on their FTP server) using
    the command
 
-       egrep '^0x(8[9a-fA-F]|9[[:xdigit:]])[[:xdigit:]][[:xdigit:]]' \
+       grep -E '^0x(8[9a-fA-F]|9[[:xdigit:]])[[:xdigit:]][[:xdigit:]]' \
          /mnt/cdrom/unix/mappings/eastasia/jis/shiftjis.txt | perl ~/sjis.pl
 
    where sjis.pl contains:
@@ -1333,7 +1333,7 @@ static const uint16_t cjk_block3[4413] =
    from the Unicode CD (also available on their FTP server) using
    the command
 
-       egrep '^0x[eE][[:xdigit:]][[:xdigit:]][[:xdigit:]]' \
+       grep -E '^0x[eE][[:xdigit:]][[:xdigit:]][[:xdigit:]]' \
          /mnt/cdrom/unix/mappings/eastasia/jis/shiftjis.txt | perl ~/sjis.pl
 
    where sjis.pl contains:
@@ -1856,7 +1856,7 @@ static const uint16_t cjk_block4[2021] =
 /* The following table can be generated using
 
    awk '/^0x/ { print $2, $1; }' < .../eastasia/jis/shiftjis.txt |
-   egrep "^0x00[[:xdigit:]][[:xdigit:]]" |
+   grep -E "^0x00[[:xdigit:]][[:xdigit:]]" |
    sort -u | perl tab.pl
 
    where tab.pl is
@@ -1938,7 +1938,7 @@ static const char from_ucs4_lat1[0xf8][2] =
 /* The following table can be generated using
 
    awk '/^0x/ { print $2, $1; }' < .../eastasia/jis/shiftjis.txt |
-   egrep "^0x0[34][[:xdigit:]][[:xdigit:]]" |
+   grep -E "^0x0[34][[:xdigit:]][[:xdigit:]]" |
    sort -u | perl tab.pl
 
    where tab.pl is
@@ -2007,7 +2007,7 @@ static const char from_ucs4_greek[193][2] =
    The following table can be generated using
 
    awk '/^0x/ { print $2, $1; }' < ...eastasia/jis/shiftjis.txt |
-   egrep "^0x[2-9][[:xdigit:]][[:xdigit:]][[:xdigit:]]" |
+   grep -E "^0x[2-9][[:xdigit:]][[:xdigit:]][[:xdigit:]]" |
    sort -u | perl tab.pl
 
    where tab.pl is
index 32776957351c787106b6904e49530d66414f34d2..9b222d358d2adde729cf9837456ea600f23245f1 100644 (file)
@@ -22,7 +22,7 @@
 
 
 /*
-egrep \
+grep -E \
 '^0x([89][0-9A-F]..|A0..|[AB][0-9A-F][4-9].|[AB][0-9A-F]A0|C[0-6][4-9].|C[0-6]A0)' < /cdrom/unix/mappings/eastasia/ksc/ksc5601.txt | perl tab.pl
 
 ------tab.pl
@@ -1150,7 +1150,7 @@ static const uint32_t uhc_extra_to_ucs[8822]=
 };
 
 /*
-egrep  '# HANGUL SYLL' < /cdrom/unix/mappings/eastasia/ksc/ksc5601.txt | \
+grep -E '# HANGUL SYLL' < /cdrom/unix/mappings/eastasia/ksc/ksc5601.txt | \
  awk '{print $2, $1}' | sort -u | perl tab.pl
 
 -----tab.pl
index db82d4871bbe6d194af0312271fe8b13b67578aa..174a3ab6a5803548e2e97ac28f1c40a0475b4dfb 100644 (file)
@@ -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 <<EOF | diff -u $testout - || exit 1
 base = "$tmp/", file = "$ftwtest", flag = FTW_D, level = 0
index aea27f9e94c4f0f512fdd8eeebfc28f462b874d1..1cf35012c697b838b518a3c7b75931da41a613b0 100644 (file)
@@ -22,7 +22,7 @@ build_menu () {
 }
 
 collect_nodes () {
-  egrep '^(@c )?@node.*Top' "$@" /dev/null | cut -d, -f-2 |
+  grep -E '^(@c )?@node.*Top' "$@" /dev/null | cut -d, -f-2 |
   sed 's/@c //; s/, /:/; s/:@node /:/; s/ /_/g; s/:/ /g' |
   $AWK '{ file[$2] = $1; nnode[$2] = $3 }
        END  { for (x in file)
index 82408f69db71fd9abaa859f91c3901dd25215cdd..8f1e73e089b92a618bddda1df7e5a43539d7d470 100644 (file)
@@ -57,13 +57,13 @@ libc.pot: pot.header libc.pot.files
            -e "s/DATE/`date +'%Y-%m-%d %H:%M'$$disp`/" \
            -e "s/CHARSET/UTF-8/" \
            $< > $@.new
-       egrep -v '\.ksh$$' $(word 2,$^) > $(objdir)/tmp-libc.pot-files
+       grep -E -v '\.ksh$$' $(word 2,$^) > $(objdir)/tmp-libc.pot-files
        cd ..; $(XGETTEXT) --keyword=_ --keyword=N_ \
                           --add-comments=TRANS --flag=error:3:c-format \
                           --flag=f_print:2:c-format \
                           --sort-by-file --omit-header -E -n -d - \
                           -f $(objdir)/tmp-libc.pot-files >> po/$@.new
-       egrep '\.ksh$$' $(word 2,$^) > $(objdir)/tmp-libc.pot-files
+       grep -E '\.ksh$$' $(word 2,$^) > $(objdir)/tmp-libc.pot-files
        cd ..; $(XGETTEXT) --add-comments=TRANS --language=Shell \
                           --sort-by-file --omit-header -E -n -o po/$@.new -j \
                           -f $(objdir)/tmp-libc.pot-files po/$@.new
index b80d141f1a189714be59595004967ca0c1b97870..852973daca567709894db78840aba2f964501fcb 100755 (executable)
@@ -32,9 +32,9 @@
 # #include <sys/stat.h>
 # EOF
 # gcc -D_GNU_SOURCE -E - |
-# egrep '^typedef.*;$' |
+# grep -E '^typedef.*;$' |
 # sed 's/^typedef[[:space:]]*//;s/\([[:space:]]\{1,\}__attribute__.*\);/;/;s/.*[[:space:]]\([*]\|\)\(.*\);/\2/' |
-# egrep -v '^_' |
+# grep -E -v '^_' |
 # LC_ALL=C sort -u
 #
 data=$1
index 047a1d34935a3b8a511d5f518ae4294cf2cff59f..7d1ffd4a92564c5842e54aeec8b4d06ad961ba3b 100644 (file)
@@ -3,7 +3,7 @@ bindir=$1
 
 VERSION=1.0
 
-egrep -h @deftypefu?nx? *.texi ../linuxthreads/*.texi |
+grep -E -h @deftypefu?nx? *.texi ../linuxthreads/*.texi |
 sed -e 's/@deftypefunx*[[:space:]]*\({[^{]*}\|[[:alnum:]_]*\)[[:space:]]*\([[:alnum:]_]*\).*/\2/' -e 's/@deftypefn {[^}]*function}*[[:space:]]*\({[^{]*}\|[[:alnum:]_]*\)[[:space:]]*\([[:alnum:]_]*\).*/\2/' -e '/^@/d' |
 sed -e '/^obstack_/d' -e '/^\([lf]\|\)stat\(\|64\)$/d' -e '/^mknod$/d' |
 sed -e '/^signbit$/d' -e '/^sigsetjmp$/d' |
@@ -15,7 +15,7 @@ sed -e '/^alloca$/d' |
 sort -u > DOCUMENTED
 
 nm --extern --define $bindir/libc.so $bindir/math/libm.so $bindir/rt/librt.so $bindir/linuxthreads/libpthread.so $bindir/dlfcn/libdl.so $bindir/crypt/libcrypt.so $bindir/login/libutil.so |
-egrep " [TW] ([[:alpha:]]|_[[:alpha:]])" |
+grep -E " [TW] ([[:alpha:]]|_[[:alpha:]])" |
 sed 's/\(@.*\)//' |
 cut -b 12- |
 sed -e '/^_IO/d' -e '/^_dl/d' -e '/^_pthread/d' -e '/^_obstack/d' |
index b40ce60461aa5e5c5533bf040f795b84299b4678..5b0237e52133e37ad7b27bfcbdc27be94bb473ad 100644 (file)
@@ -209,7 +209,7 @@ ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
 LC_ALL=C $READELF -dr conftest.so > conftest.dr 2>&5 &&
 {
   cat conftest.dr 1>&5
-  fgrep 'TEXTREL
+  grep -F 'TEXTREL
 R_ARM_NONE' conftest.dr > /dev/null || libc_cv_arm_pcrel_movw=yes
 }
 rm -f conftest*
index da078ce0126c66153b982463a30d29b6fb2bcef9..5172e30bbe79f99587dd247bc9363332b1119da6 100644 (file)
@@ -53,7 +53,7 @@ ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
 LC_ALL=C $READELF -dr conftest.so > conftest.dr 2>&AS_MESSAGE_LOG_FD &&
 {
   cat conftest.dr 1>&AS_MESSAGE_LOG_FD
-  fgrep 'TEXTREL
+  grep -F 'TEXTREL
 R_ARM_NONE' conftest.dr > /dev/null || libc_cv_arm_pcrel_movw=yes
 }
 rm -f conftest*])
index af50c5bfabfcb159d635738446e1aabfb90ec25d..cbb66097bd8579e5919fb96d2b4330ad88665888 100644 (file)
@@ -28,7 +28,7 @@ int _start (void) { int a, b, c; __sync_val_compare_and_swap (&a, b, c); return
 EOF
 if ! { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
                     -O0 -nostdlib -nostartfiles
-                    -S conftest.c -o - | fgrep "__sync_val_compare_and_swap"
+                    -S conftest.c -o - | grep -F "__sync_val_compare_and_swap"
                     1>&5'
   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   (eval $ac_try) 2>&5
index 90000b7facbde9d38c5671c91fc6a22ed0b6cda3..1d2c87f4e7877fd7ff85483f78592c2318dfbd40 100755 (executable)
@@ -35,7 +35,7 @@ rtldobjs="$rtldobjs $(ar t ${objpfx}rtld-libc.a)"
 
 # OBJECT symbols can be ignored.
 $READELF -sW ${objpfx}dl-allobjs.os ${objpfx}rtld-libc.a |
-egrep " OBJECT  *GLOBAL " |
+grep -E " OBJECT  *GLOBAL " |
 awk '{if ($7 != "ABS") print $8 }' |
 sort -u > "$tmp"
 declare -a objects
@@ -59,8 +59,8 @@ while test -n "$objs"; do
        done
         for o in $rtldobjs; do
          ro=$(echo "$objpfx"../*/"$o")
-         if $NM -g --defined-only "$ro" | egrep -qs " $s\$"; then
-           if ! (echo "$tocheck $objs" | fgrep -qs "$o"); then
+         if $NM -g --defined-only "$ro" | grep -E -qs " $s\$"; then
+           if ! (echo "$tocheck $objs" | grep -F -qs "$o"); then
              echo "$o needed for $s"
              objs="$objs $o"
            fi
index 21176f578deaa592078214c1bdcf9c615675087f..4303d2ff3741d66b4390a7ccd7fc3229e965dbac 100644 (file)
@@ -41,14 +41,14 @@ check_file() {
     file=$1
     size=$(readelf -S $file | \
        (sz=0; while read line; do
-               if echo $line | fgrep -q " .rodata"; then
+               if echo $line | grep -F -q " .rodata"; then
                    read sz rest
                    break
                fi
            done;
            printf "%d" 0x$sz))
 
-    summands=$(readelf -s $file | fgrep " OBJECT " | tr -s ' ' |
+    summands=$(readelf -s $file | grep -F " OBJECT " | tr -s ' ' |
        cut -f4 -d' ' | sed 's,$,+,')0
     sum=$(($summands))
     if [ $sum != $size ]; then