about summary refs log tree commit diff
path: root/iconvdata/gb2312.c
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-06-05 12:09:02 -0700
committerFangrui Song <maskray@google.com>2022-06-05 12:09:02 -0700
commit7df596a58cdfa763924487b8c275269de3497304 (patch)
tree7b2762ba7b12c0ed07d63cd14109305af04f4cf8 /iconvdata/gb2312.c
parent3c23fa9f44fe88d0851e1344fc37ba60e74cb0fc (diff)
downloadglibc-7df596a58cdfa763924487b8c275269de3497304.tar.gz
glibc-7df596a58cdfa763924487b8c275269de3497304.tar.xz
glibc-7df596a58cdfa763924487b8c275269de3497304.zip
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 <sam@gentoo.org>
Reviewed-by: Fangrui Song <maskray@google.com>
Diffstat (limited to 'iconvdata/gb2312.c')
-rw-r--r--iconvdata/gb2312.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/iconvdata/gb2312.c b/iconvdata/gb2312.c
index 3bab2268a4..760040a799 100644
--- a/iconvdata/gb2312.c
+++ b/iconvdata/gb2312.c
@@ -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