Signed-off-by: Alejandro Colomar <alx@kernel.org>
# Defaults:
-file='/dev/stdin';
iflag='';
lflag='';
kflag='no';
{
grepc_parse_cmd "$@" </dev/null;
- <"$file" \
- pcre2grep -${iflag}${lflag}HMn --label="$file" -f <(grepc_patterns "$identifier") \
+ pcre2grep -${iflag}${lflag}HMn -f <(grepc_patterns "$identifier") $file \
| sed -E -f <(test "$kflag" = 'no' && echo 's/^[^: ]+:[0-9]+:/\n\n&\n/') \
| perl -pe "$(test "$cflag" = 'yes' && echo 's/('"$identifier"')/\033[32m\1\033[0m/' || echo 's///')" \
| if [ -n "$lflag" ]; then