]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
grepc: Remove constraints in the file prefiltering
authorAlejandro Colomar <alx.manpages@gmail.com>
Wed, 25 May 2022 21:08:42 +0000 (23:08 +0200)
committerAlejandro Colomar <alx@kernel.org>
Wed, 29 Oct 2025 20:29:08 +0000 (21:29 +0100)
To make -tu work correctly, which doesn't have the word-boundary
constraint.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
bin/grepc

index 6c24765d4622b509370a3eb943fae1cd9a2a76b2..3b5509e6012c040a77006ed4c34d20f012f0c6da 100755 (executable)
--- a/bin/grepc
+++ b/bin/grepc
@@ -135,7 +135,7 @@ grepc_find_files()
                find $FILES -type f;
        fi \
        | grep -P -- "$ext" \
-       | xargs grep -${iflag}lPI -- "$1\b";
+       | xargs grep -${iflag}lPI -- "$1";
 }