On Fri 01 Jul 2016 at 08:36:02 (-0400), Gene Heskett wrote: > On Friday 01 July 2016 05:43:44 Jörg-Volker Peetz wrote: > > Gene Heskett wrote on 07/01/16 01:35: > > > On Thursday 30 June 2016 19:25:37 Lisi Reisz wrote: > > > > <snip> > > > > > No, thats just grep being grep, it says that of ANY binary file it > > > tries to read as text. I have spent days pouring over the manpages > > > for grep, looking for a option to feed it to make grep quit that, > > > simply because its so verbose that what you are looking for can get > > > lost in its blathering about that. > > > > > > Cheers, Gene Heskett > > > > Is 'grep -rI /etc' doing what you want? The switch "-I" should > > "process a binary file as if it did not contain matching data". > > > > Regards, > > jvp. > > But in the example that started this side-track discussion, following the > simlinks discloses that the /usr/bin/aptitude-curses file does indeed > match, but having looked at hex dumps of compiled C for 30 years now, I > will repeat myself by saying yes, its there and case matches the string > being searched for BECAUSE the binary has to have that string as a > comparison that determines how it runs. IOW, once is 100% expected.
I'm glad you've got there at last. That's much clearer than the "blathering" paragraph you originally wrote. But there's no actually need to go examining hex dumps; strings will do the job for you: $ strings /usr/bin/aptitude-curses | less > However I have no similar reasoning to apply to the match in the > python-2.7 tree. OTOH, me not a python guru. If you can't see why /etc/httpd/lib/python2.7/dist-packages/aptdaemon/console.py matches, then I can't help wondering why you have installed python-aptdaemon. When the aptdaemon is carrying out aptitude-like operations on your behalf, it needs to know your assume-yes requirement just like aptitude itself does. So it reads the same files and tests for the same strings. Cheers, David.