Hi Henrik.
It's not a bug, and it's described in the manpage:
When type is binary, grep may treat non-text bytes as line
terminators even without the -z option. This means choosing
binary versus text can affect whether a pattern matches a file.
For example, when type i
I expected these two commands to produce the exact same result:
holst@hholst-lt:~$ egrep -l '^(telegram-desktop)$' /proc/*/cmdline
/proc/20596/cmdline
holst@hholst-lt:~$ egrep -x -l 'telegram-desktop' /proc/*/cmdline
/proc/20596/cmdline
/proc/self/cmdline
/proc/thread-self/cmdline
holst@hholst-lt: