]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
bin/grepc: bugfix: Pass options to grep(1) correctly
authorAlejandro Colomar <alx@kernel.org>
Tue, 7 Nov 2023 17:06:55 +0000 (18:06 +0100)
committerAlejandro Colomar <alx@kernel.org>
Wed, 29 Oct 2025 20:29:27 +0000 (21:29 +0100)
Fixes: 92dca8e97bfa ("bin/grepc: srcfix (Variables for options hold their '-')")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
bin/grepc

index 592306df13190ff93b77fe7e093beda6181edd81..dd613e0a1a5da68e94f2cfb19c6e65abcf0b08e0 100755 (executable)
--- a/bin/grepc
+++ b/bin/grepc
@@ -233,7 +233,7 @@ if test -z "$*"; then
 else
        find "$@" -type f \
        | if test -z "$c"; then
-               xargs grep -${i}lPI -- "$identifier";
+               xargs grep -lPI $i -- "$identifier";
        else
                cat;
        fi \