summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-05-25 23:08:42 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-05-25 23:08:44 +0200
commitf60ab46047e92da7760773d4e13d6bffa455d7f3 (patch)
tree50eab16274bdd793211a2d6fa8234df43fc5175e
parentd3426cbfffa0bcff3e9c805869c6bee11f5c9e44 (diff)
grepc: Remove constraints in the file prefiltering
To make -tu work correctly, which doesn't have the word-boundary constraint. Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rwxr-xr-xbin/grepc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/grepc b/bin/grepc
index 6c24765..3b5509e 100755
--- 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";
}