bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#36820: grep "[[:cntrl:]]" /proc/1/cmdline works on 2.20 but not 3.3


From: Paul Eggert
Subject: bug#36820: grep "[[:cntrl:]]" /proc/1/cmdline works on 2.20 but not 3.3
Date: Sat, 27 Jul 2019 10:16:00 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

This is documented behavior; the grep manual says that when grep is reading a binary file it "may treat non-text bytes as line terminators".

You can use grep's -a (--text) option to if you want to match null bytes.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]