From 1dc6536ce2526990effc1c8ecb24b93685511115 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Tue, 4 Nov 2025 15:27:30 +0100 Subject: [PATCH] src/bin/grepc: -r, -l: Don't color the output of -l Signed-off-by: Alejandro Colomar --- src/bin/grepc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.47.3