]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
Use pcre2grep(1) instead of pcregrep(1)
authorAlejandro Colomar <alx@kernel.org>
Thu, 2 Nov 2023 15:02:08 +0000 (16:02 +0100)
committerAlejandro Colomar <alx@kernel.org>
Wed, 29 Oct 2025 20:29:10 +0000 (21:29 +0100)
PCRE are EOL.  Long live PCRE2.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
bin/grepc
share/man/man1/grepc.1

index 758349e1b838699aba2fbfac079aa7fc2537183e..5ae1986df0d12888fcd8d53609be65f97112dbc5 100755 (executable)
--- 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
index 2f7e3b1ae3b31764de36dbedc6aa58f9bd3b6fc0..453b85ddd5ac5df6bec69f1d1c7b32786f571ff5 100644 (file)
@@ -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