From: Alejandro Colomar Date: Tue, 7 Nov 2023 17:06:55 +0000 (+0100) Subject: bin/grepc: bugfix: Pass options to grep(1) correctly X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f637ebfc3730f9e91e0786afeade17b36ac4bcd;p=thirdparty%2Fman-pages.git bin/grepc: bugfix: Pass options to grep(1) correctly Fixes: 92dca8e97bfa ("bin/grepc: srcfix (Variables for options hold their '-')") Signed-off-by: Alejandro Colomar --- diff --git a/bin/grepc b/bin/grepc index 592306df1..dd613e0a1 100755 --- 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 \