From: Alejandro Colomar Date: Tue, 4 Nov 2025 14:27:30 +0000 (+0100) Subject: src/bin/grepc: -r, -l: Don't color the output of -l X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1dc6536ce2526990effc1c8ecb24b93685511115;p=thirdparty%2Fman-pages.git src/bin/grepc: -r, -l: Don't color the output of -l Signed-off-by: Alejandro Colomar --- diff --git a/src/bin/grepc b/src/bin/grepc index 03db8e7ef..675e7da06 100755 --- a/src/bin/grepc +++ b/src/bin/grepc @@ -77,10 +77,9 @@ else fi \ | xargs -0 sh -c 'pcre2grep $opts -f "$0" -- "$@" || test $? -eq 1;' "$patterns"; fi \ -| grep -h --color="$r" -P "($identifier|^)" \ | if test -n "$l"; then sort \ | uniq; else - cat; + grep -h --color="$r" -P "($identifier|^)"; fi;