bug#36367: Potential bug in grep / egrep

2019-06-26 Thread g1pi
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

bug#36367: Potential bug in grep / egrep

2019-06-24 Thread Henrik Holst
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: