summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-11-02 16:02:08 +0100
committerAlejandro Colomar <alx@kernel.org>2023-11-02 16:02:25 +0100
commitf3ca1dd57e0af84b7046913ee59365f0d339d1fd (patch)
treefc72d87911d753123aeb0274f41af7067416c212
parent6dd8756fedc8e85120d7c205ece387b5d49019ad (diff)
Use pcre2grep(1) instead of pcregrep(1)
PCRE are EOL. Long live PCRE2. Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rwxr-xr-xbin/grepc4
-rw-r--r--share/doc/grepc/INSTALL2
-rw-r--r--share/man/man1/grepc.12
3 files changed, 4 insertions, 4 deletions
diff --git a/bin/grepc b/bin/grepc
index 758349e..5ae1986 100755
--- a/bin/grepc
+++ b/bin/grepc
@@ -163,7 +163,7 @@ grepc_helper()
xargs grep -${iflag}lP -- "$1" \
| xargs grep -${iflag}lP -- "$2" \
| sort \
- | xargs pcregrep -${iflag}${lflag}Mn -- "$3" /dev/null \
+ | xargs pcre2grep -${iflag}${lflag}Mn -- "$3" /dev/null \
| if [ "$kflag" = 'no' ]; then
sed -E 's/^[^: ]+:[0-9]+:/\n\n&\n/';
else
@@ -178,7 +178,7 @@ grepc_helper_use()
xargs grep -${iflag}lP -- "$1" \
| xargs grep -${iflag}lP -- "$2" \
| sort \
- | xargs pcregrep -${iflag}${lflag}Mn -- "$3" /dev/null \
+ | xargs pcre2grep -${iflag}${lflag}Mn -- "$3" /dev/null \
| if [ "$kflag" = 'no' ]; then
sed -E 's/^[^: ]+:[0-9]+:/\n\n&\n/';
else
diff --git a/share/doc/grepc/INSTALL b/share/doc/grepc/INSTALL
index 0572d9d..66fa25d 100644
--- a/share/doc/grepc/INSTALL
+++ b/share/doc/grepc/INSTALL
@@ -4,7 +4,7 @@ Dependencies:
Debian:
- $ sudo apt-get install pcregrep
+ $ sudo apt-get install pcre2grep
Also, it makes use of some GNU extensions to grep(1).
diff --git a/share/man/man1/grepc.1 b/share/man/man1/grepc.1
index 2f7e3b1..453b85d 100644
--- a/share/man/man1/grepc.1
+++ b/share/man/man1/grepc.1
@@ -192,7 +192,7 @@ Alejandro Colomar
.ME .
.SH SEE ALSO
.MR git-ls-files 1 ,
-.MR pcregrep 1 ,
+.MR pcre2grep 1 ,
.MR pcresyntax 3 ,
.MR pcrepattern 3
.PP